Widget Hierarchy Page Files for Readable Secondary Development
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing page development tools require secondary development at the source code level, necessitating improved methods to generate source code files with better readability for page modifications.
Innovation Solution
A method to acquire a hierarchical relationship among widgets in a target page, convert absolute position information into relative position information, and generate a descriptive language file for the page, facilitating direct viewing and modification through a browser.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If visual configuration pages are generated for technician viewing, then page development can be facilitated, but the source code readability deteriorates when secondary development is needed
Solution Approach 1:
The patent introduces a descriptive language file as an intermediary between the visual configuration page and the source code. This intermediary layer preserves the hierarchical relationship and position information in a readable format, allowing technicians to perform secondary development without directly modifying hard-to-read source code. The descriptive language file acts as a mediator that maintains both the visual configuration benefits and the source code readability.
Solution Approach 2:
The patent creates a copy of the page structure information in a descriptive language format that mirrors the visual configuration but presents it in a more readable manner. By copying the hierarchical relationship and position information into this intermediate representation, the system allows developers to work with readable data structures rather than complex source code, thereby improving readability while maintaining development capability.
2Measurement precision
If absolute position information is used in the descriptive language file, then position accuracy is maintained, but the file readability deteriorates
Solution Approach 1:
The patent transforms the parameter representation from absolute position coordinates to relative position descriptions based on hierarchical relationships. Instead of using raw numerical coordinates that are precise but hard to read, the system expresses positions in terms of their parent-child relationships and relative offsets within the widget hierarchy. This parameter transformation maintains the underlying position accuracy while significantly improving the readability of the descriptive language file.
Solution Approach 2:
The patent segments the position information into hierarchical components rather than presenting it as a single set of absolute coordinates. By breaking down the position data into parent widget references and relative position offsets, the system makes the position information more readable and understandable while preserving the precise positioning capability through the hierarchical structure.
Data Source
AI summary
The present application relates to a page processing method, apparatus, device, and medium. In response to an operation of generating a target page in a page development platform, a hierarchical relationship among widgets in the generated target page is acquired, so as to acquire attribute information of the widgets based on the hierarchical relationship among the widgets in the target page, where the attribute information at least includes absolute position information of a first widget among the widgets as a root widget and relative position information of a second widget among the widgets as a leaf widget, such that a descriptive language file for the target page is generated based on the attribute information of the widgets.


