XML Tutorial - Actions invoke
The following syntax is used to execute invoke action on the control:
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(method) is the property that we want to be invoked.
In the applet above two rows of combo boxes are provided. If you select an item (fontstyle, fontsize, or color)
in the combo of the first row, the results will be seen in the combo box (fontstyle/fontsize/color will be selected in the combobox).
In the second row the items will be selected without the fontstyle/fontsize/color results to be seen.
The first row has the addActionTarget property set to invoke a desired event. The second row has no invoke events executed.
For example, the first combobox in the first row named through the use of the following property: setName="combo1".
Each item in the combobox has addTargetAction property set for the desired invoke event to be executed. Therefore the 'bold'
item will have the following code:
Item setLabel="bold" setFontStyle="bold" addActionTarget="combo1,invoke,setFontStyle='bold'"
See complete XML source for the applet above.
Reference for complete list of Properties.