MicroUI Static Initializer
Inputs
The XML file used as input by the MicroUI Static Initialization Tool may contain tags related to the Input component as described below.
<eventgenerators>
<!-- Generic Event Generators -->
<eventgenerator name="GENERIC" class="foo.bar.Zork">
<property name="PROP1" value="3"/>
<property name="PROP2" value="aaa"/>
</eventgenerator>
<!-- Predefined Event Generators -->
<command name="COMMANDS"/>
<buttons name="BUTTONS" extended="3"/>
<buttons name="JOYSTICK" extended="5"/>
<pointer name="POINTER" width="1200" height="1200"/>
<touch name="TOUCH" display="DISPLAY"/>
<states name="STATES" numbers="NUMBERS" values="VALUES"/>
</eventgenerators>
<array name="NUMBERS">
<elem value="3"/>
<elem value="2"/>
<elem value="5"/>
</array>
<array name="VALUES">
<elem value="2"/>
<elem value="0"/>
<elem value="1"/>
</array>
Tag |
Attributes |
Description |
---|---|---|
|
The list of event generators. |
|
|
Optional. An integer value. Defines the internal display thread priority. Default value is 5. |
|
|
Describes a generic event generator. See also Generic Event Generators. |
|
|
The logical name. |
|
|
The event generator class (must extend the |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified the listener is the default display. |
|
|
A generic event generator property. The generic event generator will receive this property at startup, via the method |
|
|
The property key. |
|
|
The property value. |
|
|
The default event generator |
|
|
The logical name. |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified, then the listener is the default display. |
|
|
The default event generator |
|
|
The logical name. |
|
|
Optional. An integer value. Defines the number of buttons which support the MicroUI extended features (elapsed time, click and double-click). |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified, then the listener is the default display. |
|
|
The default event generator |
|
|
The logical name. |
|
|
An integer value. Defines the pointer area width. |
|
|
An integer value. Defines the pointer area heigth. |
|
|
Optional. An integer value. Defines the number of pointer buttons (right click, left click, etc.) which support the MicroUI extended features (elapsed time, click and double-click). |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified, then the listener is the default display. |
|
|
The default event generator |
|
|
The logical name. |
|
|
Logical name of the Display with which the touch is associated. |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified, then the listener is the default display. |
|
|
An event generator that manages a group of state machines. The state of a machine is changed by sending an event using |
|
|
The logical name. |
|
|
The logical name of the array which defines the number of state machines for this States generator, and their range of state values. The IDs of the state machines start at 0. The number of state machines managed by the States generator is equal to the size of the |
|
|
Optional. The logical name of the array which defines the initial state values of the state machines for this States generator. The |
|
|
Optional. Default listener’s logical name. Only a display is a valid listener. If no listener is specified, then the listener is the default display. |
|
|
An array of values. |
|
|
The logical name. |
|
|
A value. |
|
|
An integer value. |
Display
The display component augments the static initialization file with:
The configuration of each display.
Fonts that are implicitly embedded within the application (also called system fonts). Applications can also embed their own fonts.
<display name="DISPLAY"/>
<fonts>
<font file="resources\fonts\myfont.ejf">
<range name="LATIN" sections="0-2"/>
<customrange start="0x21" end="0x3f"/>
</font>
<font file="C:\data\myfont.ejf"/>
</fonts>
Tag |
Attributes |
Description |
---|---|---|
|
The display element describes one display. |
|
|
The logical name of the display. |
|
|
Deprecated. This value is not taken in consideration. Use MicroEj application launcher option instead. |
|
|
Deprecated. This value is not taken in consideration. |
|
|
The list of system fonts. The system fonts are available for all displays. |
|
|
A system font. |
|
|
The font file path. The path may be absolute or relative to the XML file. |
|
|
A font generic range. |
|
|
The generic range name ( |
|
|
Optional. Defines one or several sub parts of the generic range. “1”: add only part 1 of the range “1-5”: add parts 1 to 5 “1,5”: add parts 1 and 5 These combinations are allowed: “1,5,6-8” add parts 1, 5, and 6 through 8 By default, all range parts are embedded. |
|
|
A font-specific range. |
|
|
UTF16 value of the very first character to embed. |
|
|
UTF16 value of the very last character to embed. |