Class: com.ibm.btt.rcp.visualbean.BTTLabel
Extends: org.eclipse.swt.widgets.Label
Implements:
- com.ibm.btt.rcp.visualbean.core.EuroConvertible
- com.ibm.btt.rcp.visualbean,core.DataExchanger
- com.ibm.btt.rcp.visualbean.core.GUIControl
The BTTLabel class has the following properties:
- BTT_activatedOkKey: boolean. If true, focus on the label, and OK button
exists in the composite or its parent composite, the composite fires the same
CoordinationEvent as Ok button is clicked when OkKey is pressed.
- BTT_dataName: A data element name defined in the context or operation
context. It is of type String.
- BTT_formatter: The class responsible for formatting the label contents.
The following data can be customized:
- Formatter. Can be either null, one of the provided formatters (Numeric,
Integer, Float, or Date), or a formatter developed by the user.
- Data related to the selected formatter (for example, the date separator
and the date pattern for the Date formatter).
- Error message. The message to be displayed when validation
fails. Data related to the selected formatter (for example, the date separator
and the date pattern for the Date formatter).
- euro-EMUConvertible. Enabled only if the formatter is null or FloatConverter.
If it is selected, data in the label will be converted to the appropriate
currency when the Euro button or EMUCurrency button is clicked.
There is an alternative to using a formatter to format and validate
the value. This bean can use the descriptor validation in the dataElement.
If both alternatives exist then the bean will test validity using both validations,
but it will be formatted from the view properties.