XML Tutorials - Actions
You can add loadGUI action to the buttons, items in the comboboxes, listboxes or trees.
The following syntax is used to add loadgui action to the controls:
The first parameter takes the name of the widget in which you want XML file to be loaded, the second parameter takes a specific event.
Valid events are loadgui, loadurl, invoke. The third parameter would be XML file name that you want GUI to be loaded in the specified Widget(defined in first parameter).
In the applet above three buttons
are displayed. We expect to click on the buttons and load another xml file in the panel(widget) below button.
For a 'loadgui' action to occur you would have to add the following to each Button Control tag respectivelly:
You would also have to supply the name of the Widget(panel) in which you want the XML file to be loaded through the use of
See complete XML source for the main XML file
See also XML source for the tutorials_actions_loadgui_panelA.xml file
See also XML source for the tutorials_actions_loadgui_panelB.xml file
See also XML source for the tutorials_actions_loadgui_panelC.xml file
PanelA consists of two widgets. The border (Type 'flat') was added to the panel A to make those two widgets visible for you.
The First Widget consists of three more Buttons: Panel A-1, Panel A-2, and Panel A-3. The second Widget was created to
load the three new GUI files that will be called by the buttons respectivelly.
See also XML source for the tutorials_actions_loadgui_panelA_1.xml file
See also XML source for the tutorials_actions_loadgui_panelA_2.xml file
See also XML source for the tutorials_actions_loadgui_panelA_3.xml file
In the applet above, the buttons keep its selected state.
It set by the following properties: setSticky and setGroup.
The three buttons above belong to the same group called "buttons" (setGroup="buttons").
Additionally each button has the attribute setSticky="true".
Reference for complete list of Properties.