Multiple Device Markup Language
Description and Generation
DePaul University
School of Computer Science, Telecommunications and Information Systems
Updated on 02/18/2004 12:54 AM


|
Framework Files |
Location |
|
ui.properties |
$ZOOM_HOME\test\ui\ui.properties |
|
rule.xml |
$ZOOM_HOME\resources\ui\rule.xml |
|
mdml.xml |
$ZOOM_HOME\test\ui\mdml.xml |
|
language.xml |
<<generated>> |
|
class.java |
<<generated>> |
|
Property File |
Location |
|
toolkit |
SWING | SWT |
|
mdml |
<<mdml application file>> |
|
rulexml |
<<rule file>> |
|
project_resources_dir |
Location of the resource for |
|
project_output_dir |
Location of the output generated files |
|
project_directory |
Location of the project home directory i.e. $ZOOM_HOME |
|
project_codegenerator |
Location of the ZOOM code generator |
|
Rule File |
Example |
|
Label |
<Label> |
|
<widget> |
<widget> JLabel </widget> |
|
<attribute> |
<attribute> <Method name="title" type="String">setTitle</Method> <Method name="text" type="String">setText</Method> <Method name="icon" type="text">setIcon</Method> </attribute> |
|
<composition> |
<<none>> |
|
<define> |
<<none>> |
|
Example |
<rule> <Label> <!-- define the control mapping --> <widget> JLabel </widget> <!-- define the attribute mapping --> <attribute> <Method name="title" type="String">setTitle</Method> <Method name="text" type="String">setText</Method> <Method name="icon" type="text">setIcon</Method> </attribute> </Label> </rule> |
|
Rule File
|
Example |
|
BoxLayout |
<BoxLayout> |
|
<widget> |
<widget> BoxLayout <Constructor> <Parameter type="text">$Parent</Parameter> <Parameter type="int">$axis</Parameter> </Constructor> </widget> |
|
<attribute> |
<attribute> <Method name="axis" type="int" variable="yes"/> </attribute> |
|
<composition> |
<<none>> |
|
<define> |
<<none>> |
|
|
|
Rule File |
Example |
|
Panel |
<Panel> |
|
<widget> |
<widget> JPanel </widget> |
|
<attribute> |
<attribute> <Method name="title" type="String">setTitle</Method> <Method name="name" type="String">setName</Method> </attribute> |
|
<composition> |
<composition> <GridLayout> <Method name="setLayout"/> </GridLayout> <Button> <Method name="add"/> </Button> <TextBox type="text"> <Method name="add"/> </TextBox> <Panel> <Method name="add"/> </Panel> <Slider> <Method name="add"/> </Slider> <Separator> <Method name="add"/> </Separator> <ProgressBar> <Method name="add"/> </ProgressBar> <BoxLayout> <Method name="setLayout"/> </BoxLayout> <ToolBar> <Method name="add"/> </ToolBar> <Label> <Method name="add"/> </Label> <CheckBox> <Method name="add"/> </CheckBox> <RadioButton> <Method name="add"/> </RadioButton> <ComboBox> <Method name="add"/> </ComboBox> <List> <Method name="add"> <Parameter rule="List">$myList</Parameter> </Method> </List> <LineBorder> <Method name="setBorder"/> </LineBorder> <Image> <Method name="add"/> </Image> <Tree> <Method name="add"> <Parameter rule="Tree">$myTree</Parameter> </Method> </Tree> </composition> |
| <define> |
<<None>> |
