Class: com.ibm.dse.gui.OperationPanel
Extends: com.ibm.dse.gui.DSECoordinatedPanel
The
OperationPanel class has the following properties:
- editable: boolean. If true, all the components inside the panel take the
same value in their editable property.
- operation: The operation associated with the view (see Linking a default
operation to a view).
- operationName: This value can be used to select one operation in the list
of available operations. The list is the result of reading the definition
files specified in the toolkit configuration file (DSE.INI), located in the
DSEINIDevelopmentPath Setting property. If an operationName is specified,
an instance of the operation is created automatically, if InstanceOperation
property is true.
- executeWhenOpen: The first time a panel is opened, it will execute the
default Operation property.
- classForHelpImplementation: Name of the class that has the static method
showHelp(String helpId) implemented.
- disableWhileOperationRunning: Boolean. If true, all the visual components
in the panel are disabled while the operation is executing. When the operation
finishes, the visual components recover the situation they had when the OK
button was clicked.
- instanceOperation: boolean. If true, make an Instance of OperationName.
- isInEuros: boolean. If true, the button corresponding to the selected
EMU currency is enabled and the button corresponding to euros is disabled.
A value of false means the opposite.
- EMUCurrency: The European Monetary Union (EMU) currency to be used in
the conversion from or to euros.
- helpId: Identifier for the help behavior. The text associated with this
property is shown when the Help button located in the panel is clicked or
the Help key is pressed.
- validationMethod: This method is invoked when all required fields are
filled and there is no field in error. The following data can be customized:
- Class name: The class containing the method that implements the global
validation.
- Method name: There are two possibilities for this panel:
- The method that implements the global validation must have the signature
"public static boolean xxx (Operation)", where xxx is the entered method name.
It must be implemented in the class specified.
- The method that implements the global validation must have the signature
"public static String xxx (Context)", where xxx is the entered method name.
It must be implemented in the class specified. If this method returns null
or a String with length zero, the global validation is successful. Otherwise,
validation has failed and an error message string is returned.
-
- Error message: The message to be displayed if validation fails (if the
method has the signature "static Boolean xxx (Operation)").
- title: The title that appears in the window containing the operation panel
when the XML Desktop is being used.
- iconName: The icon that appears in the window containing the operation
panel when the XML Desktop is being used.