Radio button setting method and device and radio button click response method and device
A radio and button technology, applied in the direction of instruments, electrical digital data processing, data processing input/output process, etc., can solve the problems of button group click function failure, mixing, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] The embodiment of the present invention provides a radio button setting method, such as figure 1 As shown, the method includes steps S110-S120, specifically as follows.
[0042] S110, determine whether the type of each element to be added on the interface is a radio button, and when it is determined that the type of the element to be added is a radio button, add the reference of the radio button corresponding to each element to the radio button list , where the arrangement of each element on the interface is a continuous arrangement or a discontinuous arrangement.
[0043]Among them, when adding each element to be added on the interface to the radio button list, the radio button list will judge the type of each element to determine whether the element is a radio button. If the element is a radio button, then Allows a reference to a radio button to be added to the radio button list, if the element is not a radio button, the radio button list does not allow the element t...
Embodiment 2
[0059] The embodiment of the present invention provides a radio button click response method. The radio button used in the embodiment of the present invention is set by the method provided in the above-mentioned embodiment 1, that is, the radio button is set by the method in embodiment 1 Afterwards, the method provided by the embodiment of the present invention is used to click on the radio button. Since the radio button is set by the method in Embodiment 1, no non-radio button type elements will appear in the radio button list. Therefore, when the method provided by the embodiment of the present invention is used to respond to the click of the radio button set in Embodiment 1, there will be no click response failure. Among them, such as figure 2 As shown, the method includes steps S210-S220, specifically as follows.
[0060] S210, monitor whether a radio button in the radio button list is clicked, when monitoring that a radio button is clicked, set the state of the clicked ...
Embodiment 3
[0076] The embodiment of the present invention provides a radio button setting device, such as image 3 As shown, the device includes an adding module 310 and a first setting module 320;
[0077] The above-mentioned adding module 310 is used to judge whether the type of each element to be added on the interface is a radio button, and when it is determined that the type of the element to be added is a radio button, the reference of the radio button corresponding to each element is added to In the radio button list, the arrangement of each element on the interface is continuous or discontinuous;
[0078] The radio button list above saves the reference of the radio button in the list by calling its own add function.
[0079] The above-mentioned first setting module 320 is configured to set a click listener for each radio button in the radio button list in a one-to-one correspondence, and the click listener is used to monitor whether the corresponding radio button is clicked.
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


