Method and device for realizing user interface control
A technology of user interface and implementation method, applied in the computer field, can solve the problems of complex logical structure, poor readability, and reduce the compatibility and scalability of personalized UI controls to realize code, so as to simplify code structure, improve development efficiency, and enhance Effects of Compatibility and Extensibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] figure 1 It is a schematic flowchart of a user interface control implementation method provided in Embodiment 1 of the present invention. The method can be executed by a user interface control implementation device. The device is implemented by software and can be built into a notebook computer or a desktop computer. on terminal devices for user interface control design. see figure 1 , the method specifically includes the following steps:
[0022] Step 101. Obtain attribute data of a user interface control to be implemented.
[0023] The individualized UI controls can be expressed in various forms, but when drawing the UI controls, they all need to be drawn according to the attribute data of the UI controls. Exemplarily, the attribute data may include the height, width, coordinates on the user interface, filling content, and the like of the UI control. Wherein, the coordinates may include an abscissa and a ordinate; the filling content may be image content, text con...
Embodiment 2
[0030] figure 2 It is a schematic flowchart of a user interface control implementation method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment provides a technical solution when the user interface control to be implemented includes multiple sub-controls.
[0031] Correspondingly, the method of this embodiment includes the following steps:
[0032] Step 201. Obtain attribute data of each sub-control of the user interface control to be implemented.
[0033] Step 202: Using the attribute data of each sub-control, instantiate a predefined class for implementing user interface controls to obtain each sub-control object, and store the obtained each sub-control object in a pre-created control list .
[0034] Exemplarily, the pre-defined class for implementing user interface controls can be recorded as UiData, then the pre-created control list can be defined as:
[0035] ArrayList list = new ArrayList ()
[0036] Step 2...
Embodiment 3
[0063] Figure 4 It is a schematic flowchart of a user interface control implementation method provided by Embodiment 3 of the present invention. On the basis of the above embodiments, in this embodiment, it is preferable that the attribute data include: height, width, coordinates on the user interface, and padding content, and provides the specific steps of using the attribute data to instantiate a pre-defined class for realizing the user interface control to obtain the control object.
[0064] Correspondingly, the method of this embodiment includes the following steps:
[0065] Step 401. Obtain attribute data of each sub-control of the user interface control to be implemented.
[0066] Wherein, the attribute data includes: height, width, coordinates on the user interface and filling content. The format of the attribute data is JavaScript object notation format, preferably JSON format. JSON (JavaScript Object Notation) is a lightweight data exchange format. It is...
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