CN107450813A - A kind of design method and equipment of the button for carrying Trigger Function - Google Patents

A kind of design method and equipment of the button for carrying Trigger Function Download PDF

Info

Publication number
CN107450813A
CN107450813A CN201710527334.8A CN201710527334A CN107450813A CN 107450813 A CN107450813 A CN 107450813A CN 201710527334 A CN201710527334 A CN 201710527334A CN 107450813 A CN107450813 A CN 107450813A
Authority
CN
China
Prior art keywords
target button
button
information
trigger
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710527334.8A
Other languages
Chinese (zh)
Other versions
CN107450813B (en
Inventor
张磊
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710527334.8A priority Critical patent/CN107450813B/en
Publication of CN107450813A publication Critical patent/CN107450813A/en
Application granted granted Critical
Publication of CN107450813B publication Critical patent/CN107450813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to embedded system technology field, there is provided a kind of design method and equipment of the button for carrying Trigger Function.Methods described includes:Create external trigger information and import logic, the external trigger information is imported into the target button internal logic;The internal receipt processing logic of described the target button is created, to make described the target button be based on external trigger information described in the importing logical response.The design method and equipment of a kind of button for carrying Trigger Function provided by the invention, the setting for handling logic by importing logical sum the target button internal receipt to the target button external trigger information, the control logic of the target button is deferred to inside the target button voluntarily to be handled, the development efficiency that program can greatly be improved and the maintainability and autgmentability that lift program.

Description

A kind of design method and equipment of the button for carrying Trigger Function
Technical field
The present invention relates to embedded system technology field, more particularly, to a kind of setting for button for carrying Trigger Function Count method and apparatus.
Background technology
In the design process of present panel, there is a kind of processing to be:If current keyboard belongs to the state of upspringing, it is necessary to change Part button on panel is state A;If keyboard is collapsed state, it is necessary to which the part button changed on keyboard is state B.
For above-mentioned processing, implementation method traditional at present be developer by way of hard coded come control button State, the control logic of each button are mixed together, the status information of multiple buttons are controlled in a controller. But being incremented by with button state quantity, Synchronization Control multiple buttons state can become complex and be difficult to safeguard, easily Various bug are introduced, and it is abnormal to ultimately result in the display of the button state on interface.
The content of the invention
In order to overcome above mentioned problem or solve the above problems at least in part, the present invention provides one kind and carries Trigger Function Button design method and equipment, to reduce to the degree of dependence of developer, improve the development efficiency and program to program Maintainability.
On the one hand, the present invention provides a kind of design method for the button for carrying Trigger Function, including:Create external trigger thing Part information imports logic, the external trigger information is imported into the target button internal logic;The target is created to press The internal receipt processing logic of button, to make described the target button be based on external trigger letter described in the importing logical response Breath.
Wherein, the step of establishment external trigger information imports logic further comprises:Set trigger event total Line, to gather the external trigger information, and the external trigger information is distributed to each the target button;Set The trigger event interface unit of described the target button, to make described the target button receive the institute from the trigger event bus State external trigger information;The target button set is built, and the target button set is filled with all described the target buttons.
Wherein, the step of trigger event interface unit of described setting described the target button further comprises:Definition is outside Trigger event interface, and the trigger event interface function defined in the external trigger interface;Make each described the target button The external trigger interface is inherited, and makes carbon copies the trigger event interface function.
Wherein, described the step of filling the target button set with all described the target buttons, further comprises:Institute State in trigger event bus and registration function is set, the target button view is transmitted by the registration function, by all targets Button is added to the target button set.
Wherein, the described the step of external trigger information is imported into the target button internal logic, further comprises: Since the target button set first aim button element, using loop iteration algorithm be successively read the target by The target button element in button set, and by calling the trigger event interface function of each described the target button, by the outside Trigger event information is distributed in each described the target button.
Wherein, the step of internal receipt for creating described the target button handles logic further comprises:Described in setting The target button internal receipt logic, to make described the target button adjust back the triggering thing when outside trigger event information is sent Part interface function, receive the external trigger information;The trigger event information parsing built inside described the target button is single Member;The response unit inside described the target button is built, is obtained to make described the target button be based on resolution unit parsing Data carry out Status Change response.
Wherein, the step of setting trigger event bus further comprises:One is set in the trigger event bus Individual trigger event entrance and several case distributions export.
Wherein, the trigger event entrance corresponds to the external trigger information, and the distribution outlet is corresponding each described The target button.
Wherein, the external trigger information comprises at least event type information and event argument information.
On the other hand, the present invention provides a kind of design equipment for the button for carrying Trigger Function, including:At least one storage Device, at least one processor and bus;The memory and the processor complete mutual communication by the bus;Institute State the computer program that is stored with and can run on the processor in memory, realize during the computing device described program The design method of the button for carrying Trigger Function as discussed.
The design method and equipment of a kind of button for carrying Trigger Function provided by the invention, outside to the target button Trigger event information imports the setting of logical sum the target button internal receipt processing logic, and the control logic of the target button is postponed Voluntarily handled inside to the target button, the degree of dependence to developer can be reduced, greatly improve opening for program Send out efficiency and lift the maintainability and autgmentability of program.
Brief description of the drawings
Fig. 1 is a kind of design method flow chart for the button for carrying Trigger Function of the embodiment of the present invention;
Fig. 2 is a kind of process chart for creating external trigger information and importing logic of the embodiment of the present invention;
Fig. 3 is a kind of process chart for setting the target button trigger event interface unit of the embodiment of the present invention;
Fig. 4 is the process chart that a kind of internal receipt for creating the target button of the embodiment of the present invention handles logic;
Fig. 5 is a kind of structured flowchart of the design equipment for the button for carrying Trigger Function of the embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention Figure, the technical scheme in the present invention is clearly and completely described, it is clear that described embodiment is one of the present invention Divide embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making The every other embodiment obtained on the premise of creative work, belongs to the scope of protection of the invention.
As the one side of the embodiment of the present invention, the present embodiment provides a kind of design side for the button for carrying Trigger Function Method, it is a kind of design method flow chart for the button for carrying Trigger Function of the embodiment of the present invention with reference to figure 1, including:
S1, create external trigger information and import logic, external trigger information importing target to be pressed Button internal logic.
Wherein, trigger event:Triggering refers to has excited certain to react because of shake-up.Trigger event, which refers to, can evoke corresponding reaction Introduced cases event, such as user's click action.
External trigger information imports logic:I.e. external trigger information is by total inside position to the target button Realization mechanism, including realizing route and implementation rule logic.
Step S1 is it is to be understood that the problem of existing for above-mentioned conventional button state transformation implementation, design will collection Middle control logic is decoupled and split, and the control logic of button state is deferred to inside the target button to be handled.Such as This, it is necessary to is inside external trigger information transmission to the target button, so that the choosing that each the target button can be independent The various trigger event informations of processing are selected, so as to reach the purpose of decoupling and the fractionation of button triggering logic.
Therefore, design makes the target button voluntarily identify external trigger information, and based on the external trigger thing recognized Part information voluntarily adjusts oneself state.The Status Change logical delay of the target button is carried out voluntarily to the target button inside Judge, realize the voluntarily processing of the target button state-maintenance, corresponding manual control is carried out to the target button again without extraneous Processing.Therefore need to realize acquisition approach of the target button to outside trigger event information first.
Logic is transmitted to configuration information between the target button internal logic in outside trigger event information position, that is, is created Build the importing logic of external trigger information., can be by external trigger information by position by the importing logic The internal logic of incoming the target button.
S2, the internal receipt processing logic of described the target button is created, to make described the target button be based on the importing External trigger information described in logical response.
It is to be understood that after above-mentioned steps create external trigger information importing logic, external trigger letter Breath can be by importing logical delivery to the target button internal logic.After external trigger information is received, the target button needs According to the trigger event information adjust automatically oneself state.Therefore, it is necessary to the internal receipt processing logic of design object button.
By software development framework, reception, parsing and the response processing unit to outside trigger event information are designed.Outside When portion's trigger event information is delivered to the target button by trigger event bus, the external trigger being distributed to is received by receiving unit Event information, and the data received are parsed by resolution unit, by response processing unit according to the letter being resolved to after group Breath carries out state transformation response.
The design method of a kind of button for carrying Trigger Function provided in an embodiment of the present invention, outside to the target button Trigger event information imports the setting of logical sum the target button internal receipt processing logic, and the control logic of the target button is postponed Voluntarily handled inside to the target button, the degree of dependence to developer can be reduced, greatly improve opening for program Send out efficiency and lift the maintainability and autgmentability of program.
According to above-described embodiment, wherein optionally, the further step for creating external trigger information and importing logic Rapid reference chart 2, it is a kind of process chart for creating external trigger information and importing logic of the embodiment of the present invention, including:
S11, trigger event bus is set, to gather the external trigger information, and by the external trigger thing Part information is distributed to each the target button.
It is to be understood that in order to realize that external trigger information to the handling process of the target button, sets trigger event Bus, external trigger information can be transmitted on the bus, respectively wait to respond because that need to be distributed to external trigger information The target button, so needing to correspond to external trigger information position and the target button respectively to be responded on the bus Locate configuration information interface.By the bus transfer, distribution of the external trigger information to the target button is realized.
Wherein optional, described the step of setting trigger event bus, further comprises:In the trigger event bus A trigger event entrance and several case distributions are set to export.
In one embodiment, the trigger event entrance corresponds to the external trigger information, the distribution outlet Corresponding each described the target button.
It is to be understood that in order to carry out unified distribution processor to the trigger event of outside, a set of triggering thing is designed Part bus, the trigger event bus are mainly responsible for distribution external trigger information into each the target button.Realize target Button from Trigger Function, it is necessary to set the access interface of trigger event.
Therefore at least provided with a trigger event entrance in trigger event bus, for corresponding external trigger letter Breath;Several case distributions are set to export simultaneously, for corresponding to the target button respectively to be responded.Therefore the number of case distribution outlet Amount should at least be equal to the sum of the target button to be responded.The triggering of trigger event bus is realized especially by following instruction code Event entrance is set:
Trigger event entrance:public void onEvent(Event event);
Wherein, parameter event is the external trigger information of definition, that is, the encapsulation class to external trigger. When external trigger is triggered, the onEvent in calling trigger event bus in the place of external trigger Function, thus external trigger information transmission is suffered to trigger event bus.
Trigger event bus is received after external trigger, it is necessary to which the trigger event is distributed in each the target button Portion's logic, the target button internal logic is allowed to carry out the processing of selectivity to event.
S12, the trigger event interface unit of described the target button is set, to make described the target button receive from described The external trigger information of trigger event bus.
It is to be understood that after above-mentioned steps set trigger event bus, to realize the target button to external trigger thing The acquisition of part information, it is also necessary to which corresponding interface unit is set in the target button.So that each the target button is come from detecting During the external trigger information of trigger event bus events distribution outlet, external trigger is received by the interface unit and believed Breath, and state transformation response is carried out accordingly.Therefore, the trigger event for receiving external trigger information is set in the target button Interface unit.
It is wherein optional, the further step of the trigger event interface unit that described the target button is set with reference to figure 3, For the embodiment of the present invention it is a kind of set the target button trigger event interface unit process chart, including:S121, definition are outside Trigger event interface, and the trigger event interface function defined in the external trigger interface;S122, make each target Button inherits the external trigger interface, and makes carbon copies the trigger event interface function.
It is to be understood that in order that the target button can have unified trigger event to receive structure, in Development Framework Define an IEvent interface, and an interface function public void onViewEvent (Event defined in the interface event)。
Next, for the target button that each needs to receive trigger event information, allow what its succession defined respectively IEvent interfaces, and onViewEvent functions are made carbon copies in the IEvent interfaces of succession.Pass through the design procedure, it is ensured that each It is individual need receive trigger event information the target button in can realize IEvent interfaces and comprising onViewEvent functions.
S13, the target button set is built, and the target button set is filled with all described the target buttons.
It is to be understood that it can be entered simultaneously by multiple buttons for same external trigger in practical application Row response, it is therefore desirable to which the external trigger information is distributed to the button needed to trigger event response.For multiple The target button to be responded, in order to avoid leakage passes, it is wrong pass, build the target button set list lists, list initialization when Time is empty, is a null set.
The target button set needs to receive the target button of external trigger dedicated for storage, i.e., need to be pressed in the target Many the target button elements are stored in button set list, as long as the target button in the target button set subsequently can all receive To the trigger event information of distribution.
Therefore, the set next is filled with all the target buttons, so just included in the target button set all The target button to be responded.When carrying out the distribution of external trigger information, institute is distributed to all buttons in the target button set State external trigger information.
Wherein optional, described the step of filling the target button set with all described the target buttons, further wraps Include:Registration function is set in the trigger event bus, the target button view is transmitted by the registration function, by all institutes State the target button and be added to the target button set.
It is to be understood that in order that trigger event bus can know which button need respond trigger event information, A function registration function is designed in trigger event bus, is specially:register Event(My Button my Button).The registration function can transmit the target button view, and the target button is passed through into add inside registration function Method is added in set list.The target button for being hopeful to obtain trigger event information can all be noted by this method Volume is that can be achieved to send the button element in set list in corresponding trigger event letter in the later stage into set list, so Breath.
A kind of design method of button for carrying Trigger Function provided in an embodiment of the present invention, it is total by designing trigger event Line and the target button internal trigger event interface unit, realize by an external trigger while trigger multiple the target button shapes State responds.Simultaneously by setting the target button set, it is ensured that to needing to be responded the target button exhaustive, faultless touching Hair, probability is shown so as to reduce mistake, ensures Consumer's Experience.
According to above-described embodiment, wherein optionally, the internal receipt processing logic for creating described the target button is entered One step is the process chart that a kind of internal receipt for creating the target button of the embodiment of the present invention handles logic with reference to figure 4, Including:
S21, the target button internal receipt logic is set, to make described the target button in outside trigger event information The trigger event interface function is adjusted back when sending, receives the external trigger information.
The present embodiment mainly describes reception processing logic of the target button to outside trigger event information, that is, in button Portion is how outside trigger event information to be received and filtration treatment.This step is it is to be understood that in Development Framework Create the reception logic inside each the target button.Described by above-described embodiment, each needs to receive trigger event The target button of information is required for realizing the IEvent interfaces that above-described embodiment defines and made carbon copies in IEvent interfaces OnViewEvent (Event event) function.
Due to being inherited in a manner of interface, such all the target buttons must all make carbon copies all letters in interface Necessarily onViewEvent (Event event) function is had inside number, i.e. the target button.Described by above-described embodiment, Trigger event can be distributed in the onViewEvent functions inside each the target button by trigger event bus, i.e., once touching Hair event triggers, and each the target button can adjust back onViewEvent functions automatically, with regard to that can connect inside so each the target button Receive the external trigger information that the distribution of trigger event bus comes.
S22, build the trigger event information resolution unit inside described the target button.
In one embodiment, the external trigger information comprises at least event type information and event argument is believed Breath.
It is to be understood that receive external trigger letter in the target button internal receipt logic set using above-mentioned steps After breath, the target button need to be parsed to the data of reception, filter identification, could independently be rung according to the information recognized Should.Therefore, this step builds the trigger event information resolution unit inside the target button in Development Framework.
The target button internal receipt logic set using above-mentioned steps, that the target button receives is an Event Object, the object are a description informations to event.Two parts are comprised at least in the information of Event object enclosed insides: One is event type eventType, is integer type;The second is event argument information, in this embodiment using Object classes Type is stored.
For example, Object is the abstract class of top in Java, according to the characteristic of object-oriented, Object can be used for Carry arbitrary parameter information.Therefore getEventType functions are called to obtain this first when carrying out trigger event information parsing The type information of trigger event, then obtain the parameter information of trigger event by calling getEventParam functions.So i.e. Acquisition event Event internal information can be parsed.
S23, the response unit inside described the target button is built, to make described the target button be based on the resolution unit The data that parsing obtains carry out Status Change response.
It is to be understood that parse outside in the trigger event information resolution unit that the target button is built according to above-mentioned steps After the information of trigger event, it is also necessary to the adjustment of oneself state is carried out according to the information being resolved to.Such as work as external trigger Belong to for current keyboard when upspringing state, the automatic part button changed on panel is state A.
Therefore, the response unit inside the target button is built by Development Framework, passes through resolution unit solution in the target button After having analysed trigger event information, corresponding logic can be handled for oneself trigger event interested, so as to reach target Button automated tos respond to the purpose of Trigger Function.
The design method of a kind of button for carrying Trigger Function provided in an embodiment of the present invention, by setting the target button Inside parsing and response unit, enable the target button automatically to safeguard oneself corresponding state, so as to greatly release exploitation Personnel's hard coded form effectively improves the development efficiency of program and improves journey to the attended operation of each state of the target button The maintainability and autgmentability of sequence.
According to above-described embodiment, wherein optionally, it is described to import the external trigger information inside the target button The step of logic, further comprises:Since the target button set first aim button element, using loop iteration Algorithm is successively read the target button element in the target button set, and by calling the triggering thing of each described the target button Part interface function, the external trigger information is distributed in each described the target button.
It is to be understood that the target button set being had been built up for above-described embodiment, which includes need to be responded The target button element, as long as carrying out external trigger information distribution to the target button element in the target button set, It can ensure that the target button each to be responded can normally receive external trigger information.
After external trigger message is received in bus, it can pass through since first element in list set The mode of for circulations takes out the target button element in list set successively, and calls respectively in each the target button element OnViewEvent functions, by the internal logic of each the target button of external trigger information access.So as to reach trigger event Information is distributed to the purpose in each the target button to be responded.
The design method of a kind of button for carrying Trigger Function provided in an embodiment of the present invention, by designing for circulations Iterative algorithm, the distribution of trigger event information is carried out to all the target button elements in the target button set one by one, can be effective The probability omitted during distribution with mistake is reduced, ensures the normal display of display picture.
As the other side of the embodiment of the present invention, the present embodiment provides a kind of design for the button for carrying Trigger Function Equipment, it is a kind of structured flowchart of the design equipment for the button for carrying Trigger Function of the embodiment of the present invention with reference to figure 5, including:Extremely Few a memory 1, at least one processor 2 and bus 3.
Wherein, memory 1 and processor 2 complete mutual communication by bus 3;Being stored with memory 1 to locate The computer program run on reason device 2, realized when processor 2 performs described program and carry triggering work(as described in above-mentioned embodiment The design method of the button of energy.
It is to be understood that memory 1, processor are comprised at least in the design equipment of the described button for carrying Trigger Function 2 and bus 3, and memory 1 and processor 2 form mutual communication connection by bus 3, and can complete mutual logical Letter.
When equipment is run, processor 2 calls the programmed instruction in memory 1, is carried with performing above-mentioned each method embodiment The method of confession, such as including:Create external trigger information and import logic;And external trigger interface is defined, and Trigger event interface function etc. defined in the external trigger interface.
In another embodiment of the present invention, there is provided a kind of non-transient computer readable storage medium storing program for executing, the non-transient calculating Machine readable storage medium storing program for executing stores computer instruction, and the computer instruction makes the computer perform as described in above-mentioned embodiment Carry the design method of the button of Trigger Function.
Specifically, it can be understood as, realizing all or part of step of above method embodiment can be referred to by program Related hardware is made to complete, foregoing program can be stored in a computer read/write memory medium, and the program is performing When, execution the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are each Kind can be with the medium of store program codes.
The embodiment of the design equipment of the button for carrying Trigger Function described above is only schematical, wherein making The unit illustrated for separating component can be or may not be physically separate, can both be located at a place, or It can also be distributed on heterogeneous networks unit.This can be realized according to selection some or all of module therein is actually needed The purpose of embodiment scheme.Those of ordinary skill in the art are not in the case where paying performing creative labour, you can to understand simultaneously Implement.
By the description of embodiment of above, those skilled in the art is it will be clearly understood that each embodiment can borrow Software is helped to add the mode of required general hardware platform to realize, naturally it is also possible to pass through hardware.It is above-mentioned based on such understanding The part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the meter Calculation machine software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Order, make it that it is real that a computer equipment (such as personal computer, server, or network equipment etc.) performs above-mentioned each method Apply the method described in some parts of example or embodiment of the method.
A kind of design equipment of button for carrying Trigger Function provided in an embodiment of the present invention and a kind of non-transient intelligent body Readable storage medium storing program for executing, by the way that the change logical delay of the state of the target button is voluntarily judged to the target button inside, And corresponding service logic inside the target button is triggered according to trigger event information, oneself state conversion adjustment is carried out, is realized outer The maintenance of these states is transferred into the target button voluntarily without carrying out corresponding manual control processing to the target button again in boundary The function of processing.The degree of dependence to developer can be effectively reduced, greatly improves development efficiency and the lifting of program The maintainability and autgmentability of program.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should be understood:It still can be right Technical scheme described in foregoing embodiments is modified, or carries out equivalent substitution to which part technical characteristic;And this A little modifications are replaced, and the essence of appropriate technical solution is departed from the spirit and model of various embodiments of the present invention technical scheme Enclose.

Claims (10)

  1. A kind of 1. design method for the button for carrying Trigger Function, it is characterised in that including:
    Create external trigger information and import logic, patrolled the external trigger information is imported inside the target button Volume;
    The internal receipt processing logic of described the target button is created, to make described the target button be based on the importing logical response The external trigger information.
  2. 2. according to the method for claim 1, it is characterised in that the step for creating external trigger information and importing logic Suddenly further comprise:
    Trigger event bus is set, to gather the external trigger information, and the external trigger information divided It is sent to each the target button;
    The trigger event interface unit of described the target button is set, the trigger event is come from receive described the target button The external trigger information of bus;
    The target button set is built, and the target button set is filled with all described the target buttons.
  3. 3. according to the method for claim 2, it is characterised in that the trigger event interface list that described the target button is set The step of member further comprises:
    Define external trigger interface, and the trigger event interface function defined in the external trigger interface;
    Make each described the target button inherit the external trigger interface, and make carbon copies the trigger event interface function.
  4. 4. according to the method for claim 2, it is characterised in that described to be pressed with all the target buttons fillings target The step of button set, further comprises:
    Registration function is set in the trigger event bus, the target button view is transmitted by the registration function, will be all Described the target button is added to the target button set.
  5. 5. according to the method for claim 4, it is characterised in that described to press external trigger information importing target The step of button internal logic, further comprises:
    Since the target button set first aim button element, the mesh is successively read using loop iteration algorithm The target button element in set of buttons is marked, and by calling the trigger event interface function of each described the target button, by described in External trigger information is distributed in each described the target button.
  6. 6. according to the method for claim 3, it is characterised in that the internal receipt processing for creating described the target button is patrolled The step of collecting further comprises:
    The target button internal receipt logic is set, to make described the target button be returned when outside trigger event information is sent The trigger event interface function is adjusted, receives the external trigger information;
    Build the trigger event information resolution unit inside described the target button;
    The response unit inside described the target button is built, is obtained to make described the target button be based on resolution unit parsing Data carry out Status Change response.
  7. 7. according to the method for claim 2, it is characterised in that described the step of setting trigger event bus further wraps Include:
    A trigger event entrance and several case distributions are set to export in the trigger event bus.
  8. 8. according to the method for claim 7, it is characterised in that the trigger event entrance corresponds to the external trigger Information, described corresponding each described the target button in distribution outlet.
  9. 9. according to the method for claim 1, it is characterised in that the external trigger information comprises at least event type Information and event argument information.
  10. A kind of 10. design equipment for the button for carrying Trigger Function, it is characterised in that including:At least one memory, at least one Individual processor and bus;
    The memory and the processor complete mutual communication by the bus;
    The computer program that can be run on the processor, the computing device described program are stored with the memory In Shi Shixian such as claim 1 to 9 it is any as described in method.
CN201710527334.8A 2017-06-30 2017-06-30 Design method and device of button with trigger function Active CN107450813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527334.8A CN107450813B (en) 2017-06-30 2017-06-30 Design method and device of button with trigger function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527334.8A CN107450813B (en) 2017-06-30 2017-06-30 Design method and device of button with trigger function

Publications (2)

Publication Number Publication Date
CN107450813A true CN107450813A (en) 2017-12-08
CN107450813B CN107450813B (en) 2020-02-07

Family

ID=60488540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527334.8A Active CN107450813B (en) 2017-06-30 2017-06-30 Design method and device of button with trigger function

Country Status (1)

Country Link
CN (1) CN107450813B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596607A (en) * 2020-04-14 2020-08-28 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN115913175A (en) * 2022-11-17 2023-04-04 哈尔滨理工大学 Filtering method based on self-triggering and coding and decoding mechanism

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001318796A (en) * 2000-02-29 2001-11-16 Leben Co Ltd Program execution control method using internal and external event driven system, recording medium and program preparation support system
CN102402373A (en) * 2010-09-15 2012-04-04 ***通信有限公司 Method and device for controlling touch keyboard in mobile terminal
CN103010125A (en) * 2012-12-12 2013-04-03 深圳市凌启电子有限公司 Vehicle electronic device control method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001318796A (en) * 2000-02-29 2001-11-16 Leben Co Ltd Program execution control method using internal and external event driven system, recording medium and program preparation support system
CN102402373A (en) * 2010-09-15 2012-04-04 ***通信有限公司 Method and device for controlling touch keyboard in mobile terminal
CN103010125A (en) * 2012-12-12 2013-04-03 深圳市凌启电子有限公司 Vehicle electronic device control method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596607A (en) * 2020-04-14 2020-08-28 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN111596607B (en) * 2020-04-14 2021-07-13 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN115913175A (en) * 2022-11-17 2023-04-04 哈尔滨理工大学 Filtering method based on self-triggering and coding and decoding mechanism

Also Published As

Publication number Publication date
CN107450813B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
TW527794B (en) Data sending and receiving structure among application programs, data sending and receiving method among application programs and computer readable recording medium for recording program executing sending and receiving method among application programs
CN109324787A (en) A kind of business software development approach, device and terminal device
CN107526645B (en) A kind of communication optimization method and system
CN109842565A (en) Interface current-limiting method, device, electronic equipment and storage medium
CN108062367A (en) The method for uploading and its terminal of a kind of data list
CN109324791A (en) Finance self-help terminal traffic process development approach, device and terminal device
CN105809248A (en) Method for configuring DANN onto SDN and an interaction method between them
CN109471626A (en) Page logic structure, page generation method, page data processing method and device
CN104081734A (en) Using transactions to minimize churn in a distributed network control system
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN103597464B (en) Will explain operation when using the method, system and device for adapting to multiple client computer
CN102801714A (en) Method for analyzing and reducing SQL (Structured Query Language) command in TNS (Transparent Network Substrate) protocol in by-pass manner
CN110225104A (en) Data capture method, device and terminal device
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN110351325A (en) A kind of data processing method and relevant device
CN104660435A (en) Transactional network management engine for intelligent pipeline and network management transaction processing method of transactional network management engine
CN112867989A (en) Flow-based composition and monitoring server system and method
CN110362565A (en) The topological relation between a group node is being used and updated in affair clustering
CN107450813A (en) A kind of design method and equipment of the button for carrying Trigger Function
CN112287644B (en) Data submitting method, device, computer equipment and readable storage medium
CN109918054A (en) A kind of service bus micro-kernel frame design method based on Formal Specification
CN110083460A (en) A kind of design method of the microkernel architecture using event bus technology
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
US10845787B1 (en) Concurrent updating for linear topologies in an industrial automation environment
CN110032508A (en) Function driver test method, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant