Class: com.ibm.btt.rcp.visualbean.BTTComposite
Extends:
com.ibm.btt.rcp.visualbean.BTTCoordinatedComp
The BTTComposite class
has the following properties:
- editable: boolean. If true, all components inside the composite take the
same value as 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_contextName: This value can be used to select one context from the
list of available contexts at development time. The list is the result of
reading the definition files specified in the toolkit configuration file (btt.xml),
located in the DSEINIDevelopmentPath Setting property. At runtime, if a contextName
is specified, an instance of the context is created automatically if InstanceContext
property is true.
- BTT_operationName: This value can be used to select one operation from
the list of available operations at development time. The list is the result
of reading the definition files specified in the client configuration file
(btt.xml), located in the DSEINIDevelopmentPath Setting property. At runtime,
if an operationName is specified, an instance of the operation is created
automatically if InstanceOperation property is true.
- BTT_executeWhenOpen: boolean. If true, then the first time the 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 return to the state that they were in (enabled
or disabled) when the OK button was clicked.
- BTT_instanceOperation: Boolean. If true, makes an Instance of OperationName.
- BTT_instanceContext: Boolean. If true, makes an Instance of ContextName.
- BTT_isInEuros: Boolean. If true, the button corresponding to euros is
enabled, and the button corresponding to the selected EMU currency is disabled.
- BTT_EMUCurrency: A string for 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: Specifies the method that 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
"static boolean xxx (Context)", 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
"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 a signature "static Boolean xxx (Context)").