eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser Commands 

Command Editor

By double click on a .command file in the Navigator view, the command editor opens (s. fig. 281 )

Fig. 281: Command Editor
Fig. 281: Command Editor

The following buttons are provided by the toolbar:

Parameter einfügen Adds a new parameter to the command
Parameter entfernen Removes the selected parameter
Nach unten Moves the selected parameter up
Nach oben 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.
The application will operate normal while the command is running. Usually the application waits until the command ends.

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 Parameter einfügen (s. fig.3).

Fig. 282: New Parameter
Fig. 282: New Parameter

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).