Class: com.ibm.btt.rcp.visualbean.BTTOperationComposite
Extends:
com.ibm.btt.rcp.visualbean.BTTCoordinatedComp
The BTTOperationComposite
class has the following properties:
- editable: boolean. If true, all the components inside the composite take
the same value in their editable property.
- BTT_activatedOkKey: boolean. If true, focus on the composite, and OK button
exists in the composite, the composite fires the same CoordinationEvent as
Ok button is clicked when OkKey is pressed.
- BTT_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 (btt.xml), located in the
DSEINIDevelopmentPath Setting property. If an operationName is specified,
an instance of the operation is created automatically, if InstanceOperation
property is true.
- BTT_executeWhenOpen: The first time a composite is opened, it will execute
the default Operation specified by BTT_operationName.
- BTT_classForHelpImplementation: Name of the class that has the static
method showHelp(String helpId) implemented.
- BTT_disableWhileOperationRunning: Boolean. If true, all the visual components
in the composite 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.
- BTT_instanceOperation: boolean. If true, make an Instance of OperationName.
- BTT_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.
- BTT_EMUCurrency: The European Monetary Union (EMU) currency to be used
in the conversion from or to euros.
- BTT_helpID: Identifier for the help behavior. The static method showHelp(String
helpId) is called with this property as input when the Help button located
in the composite is clicked or the Help key is pressed.
- BTT_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 composite:
- 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. If this method returns true,
the global validation is successful. Otherwise, validation has failed and
an error message string is returned.
- 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)").