METHOD AND DEVICE FOR EXTENDING A LAYOUT TEMPLATE OF AN APPLICATION COMPONENT
First Claim
1. A method for updating a layout template of a component based on an inheritance relationship, the method comprising:
- determining the inheritance relationship between the component and an existing component;
generating extension information for the component to be extended based on the inheritance relationship, wherein the extension information comprises identification information of the existing component, the inheritance relationship, and content to be extended;
acquiring a layout template object of the existing component based on the identification information of the existing component, wherein the layout template object is configured using at least one element item of a corresponding component; and
updating the element item in the layout template object to obtain a second layout template object for the component using the inheritance relationship and the content to be extended.
1 Assignment
0 Petitions
Accused Products
Abstract
The present application provides a method and a device for extending a layout template of a component. The method includes determining an inheritance relationship between a component to be extended and an existing component, generating extension information of the component to be extended according to the inheritance relationship, where the extension information includes identification (ID) information of the existing component, the inheritance relationship, and content to be extended. The method further includes acquiring a layout template object of the existing component according to the ID information of the existing component, where the layout template object is configured with at least one element item of the corresponding component, and updating the element item in the layout template object according to the inheritance relationship and the content to be extended to obtain a layout template object. A layout template is extended using an inheritance relationship between objects to simplify the management of the layout templates and the complexity of maintenance and updates.
16 Citations
20 Claims
-
1. A method for updating a layout template of a component based on an inheritance relationship, the method comprising:
-
determining the inheritance relationship between the component and an existing component; generating extension information for the component to be extended based on the inheritance relationship, wherein the extension information comprises identification information of the existing component, the inheritance relationship, and content to be extended; acquiring a layout template object of the existing component based on the identification information of the existing component, wherein the layout template object is configured using at least one element item of a corresponding component; and updating the element item in the layout template object to obtain a second layout template object for the component using the inheritance relationship and the content to be extended. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A device for updating a layout template of a component, comprising:
-
a determining module, configured to determine an inheritance relationship between a component and an existing component; a generation module, configured to generate extension information of the component according to the inheritance relationship, wherein the extension information comprises identification information of the existing component, the inheritance relationship, and content to be extended; an acquiring module, configured to acquire a layout template object of the existing component according to the identification information of the existing component, wherein the layout template object is configured with at least one element item of the corresponding component; and an update module, configured to update the element item in the layout template object according to the inheritance relationship and the content to be extended to obtain a layout template object of the component. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A device for updating a layout template of a component, comprising:
-
a memory; and a processor communicatively coupled to the memory that determines an inheritance relationship between a component and an existing component stored in the memory, generates extension information for the component to be extended according to the inheritance relationship, wherein the extension information comprises identification information of the existing component, the inheritance relationship, and content to be extended, acquires a layout template object of the existing component according to the identification information of the existing component, wherein the layout template object is configured using at least one element item of the corresponding component, and updates the element item in the layout template object according to the inheritance relationship and the content to be extended to obtain a layout template object of the component. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification