Plugin construction method for multistage tab and setting method and device thereof
A construction method, tab technology, applied in program control device, program control design, input/output process of data processing, etc., can solve problems such as lack of flexibility, and achieve a wide range of applications, flexible layout, flexible methods Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] see figure 1 It is a schematic flowchart of a multi-level tab plug-in construction method provided by Embodiment 1 of the present invention. The method includes the following steps:
[0042] S11. Define the global object of the plug-in, and write a function closure, and return the object in the closure to the global object;
[0043] It can be understood that the purpose of defining the global object of the plug-in and writing the function closure is to prevent the variables in the plug-in from polluting the global variables, that is, the plug-in can be applied to various operating environments, expanding its scope of use.
[0044] S12. Define a function variable and an initialization mode of the plug-in in the closure;
[0045]Specifically, function variables are defined in the closure and local variables are defined in the function, so that commonly used variables are written at the top; at the same time, the initialization mode of the plug-in is defined, including th...
Embodiment 2
[0050] Referring to embodiment one of the present invention and figure 1 The specific process of steps S11 to S13 described in , and referring to the schematic flowchart of a method for setting multi-level tabs provided in Embodiment 2 of the present invention, the method includes the following steps:
[0051] S21. Analyze the acquired trigger event, and obtain attribute information corresponding to the trigger event;
[0052] S22. According to the attribute information of the trigger event, judge whether the tab level corresponding to the trigger event is the lowest level of the tab, if yes, execute S23, and if not, execute S24;
[0053] S23. Display corresponding content information according to the trigger event;
[0054] S24. According to the attribute information of the trigger event, set the lower-level tab list of the tab level corresponding to the trigger event, and perform hexadecimal color conversion and calculation according to the color value of the current level ...
Embodiment 3
[0068] Corresponding to the method for setting multi-level tabs disclosed in Embodiment 2, Embodiment 3 of the present invention also provides a device for setting multi-level tabs, see image 3 A schematic structural diagram of a device for setting multi-level tabs provided by Embodiment 3 of the present invention, the device includes:
[0069] An analysis module 1, configured to analyze the acquired trigger event, and obtain attribute information corresponding to the trigger event;
[0070] The setting module 2 is used to judge whether the tab level corresponding to the trigger event is the lowest level of the tab according to the attribute information of the trigger event, and if so, display the corresponding content information according to the trigger event ; If not, according to the attribute information of the trigger event, set the lower-level tab list of the tab level corresponding to the trigger event, and perform a hexadecimal color according to the color value of t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com