Compact, portable, and efficient representation of a user interface control tree
First Claim
1. A computer-readable storage medium containing instructions which, when executed by one or more processors disposed in an electronic device, perform a method for implementing a user interface (UI), the method comprising the steps of:
- receiving an in-memory op-code stream in an object construction and scripting section of binary code in a file, the in-memory op-code stream not comprising cached bytecode, the binary code being encoded from a declarative markup that includes embedded script, the markup defining a UI including UI control objects; and
interpreting the op-code stream to construct the UI control objects and execute the script at runtime to render the UI in a runtime environment on a device, the interpreting being performed while maintaining a single stack through operation of the object construction and execution of the script.
2 Assignments
0 Petitions
Accused Products
Abstract
A non-tree representation of a UI control tree is provided by a compact UI binary file that is generated by encoding a UI definition markup file expressing UI controls and behavior in human-readable form. The UI binary file is utilized in a runtime environment on a computing device as a source of a binary instruction stream. The stream can be efficiently processed by an interpreter on the device without needing validation between loading and rendering the UI. The encoding places much of the representation into an object and script section of the UI binary file. The interpreter runs this section without it being entirely resident in the device'"'"'s memory to minimize the memory footprint. At runtime, operation code (“op-code”) streams contained in this section are used to build UI objects, and implement scriptable behavior for manipulating the UI objects to render the UI on the device with the designed behavior.
36 Citations
19 Claims
-
1. A computer-readable storage medium containing instructions which, when executed by one or more processors disposed in an electronic device, perform a method for implementing a user interface (UI), the method comprising the steps of:
-
receiving an in-memory op-code stream in an object construction and scripting section of binary code in a file, the in-memory op-code stream not comprising cached bytecode, the binary code being encoded from a declarative markup that includes embedded script, the markup defining a UI including UI control objects; and interpreting the op-code stream to construct the UI control objects and execute the script at runtime to render the UI in a runtime environment on a device, the interpreting being performed while maintaining a single stack through operation of the object construction and execution of the script. - View Dependent Claims (2, 3, 4)
-
-
5. A method for generating a binary instruction stream for creating and manipulating a user interface (UI) for execution on a device at runtime, the method comprising the steps of:
-
declaratively constructing objects for a UI through a markup; providing scripted behavior for the objects using script that is embedded in the markup; and encoding the markup and script to generate an in-memory binary instruction stream containing op-codes that are respectively mapped to the constructed objects and scripted behavior, the in-memory binary instruction stream containing op-codes not comprising cached bytecode, the in-memory binary instruction stream being interpreted while maintaining a single stack through operation of the object construction and execution of the script at runtime. - View Dependent Claims (6, 7, 8, 9)
-
-
10. A method for generating a user interface (UI) binary file for representing a UI control tree in a compact form, the method comprising the steps of:
-
receiving a UI definition file in human-readable form, the UI definition file expressing a set of UI control behaviors using a declarative syntax for building a plurality of UI objects and embedded script for manipulating built objects; encoding the UI definition file by emitting an op-code as an in-memory binary instruction stream, the op-codes being selected for implementing the built objects and scripted control behaviors at runtime and the op-codes not comprising cached bytecode; and generating the UI binary file by persisting the in-memory binary instruction stream, the in-memory binary instruction stream being interpreted while maintaining a single stack through operation of the object building and execution of the scripted control behaviors at runtime. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
Specification