By double click on a .command file in the Navigator view, the command editor opens (s. fig. 281 )
The following buttons are provided by the toolbar:
| Adds a new parameter to the command | |
| Removes the selected parameter | |
| Moves the selected parameter up | |
| Moves the selected parameter down |
In the Command editor, the new created Command class can be entered with full class path in the field Command class.
Following propertys are available:
| Threaded | Is the property Threaded been selected, the command will be worked parralel.
|
||
Example:
mypackage.myCommand
The Command editor allows to register parameters wich are provided to the command class as arguments. These parameters can be set in the Properties dialog of the form editor. As data type, all wrapper classes an the SWindow based classes are allowed.
A new parameter can be added by the button
(s.
fig.3).
| Parameter | Defines the name of the parameter. The name can be freely choosen | ||
| Class | Defines the class type with clawss path of the parameter. A SWindow gets the entry com.odc.eva3.rt.se.form.SWindow, an Integer java.lang.Integer | ||
| Description | Description of the parameter | ||
| Style | Defines, wich kind of data selection will be provided int the Properties dof the Form editor, to set the value of this parameter | ||
| dynamic | By setting the style value printer the printer list of the operating system will be displayed in a ComboBox. The style valuelook&feel shows a list of the used Java Look and Feels | ||
| listselection | Provides a ComboBox. The list items are defined by a ;-separated list in style value | ||
| fileselection | Provides a file selection dialog | ||
| pairselection | Provides a ComboBox. The
list elements are defined by a ; separated list in
style value. The single entries are defined by athe pattern Value|List entry. The list entry can be selected from the
ComboBox, but the Value will be given. Example: 1|One;2|Two |
||
| Style value | Depends on the style. The element listselection allows the selection from a ;-separated list. The element fileselection can contain a file suffix, so that the file selection dialog only shows this kind of files | ||
Befehle können dann in Makros eingesetzt werden, oder direkt in die Event Eigenschaften von von Formular oder Berichtselementen eingesetzt werden (s. Makros auswählen).