Class: com.ibm.dse.gui.SpLabel
Extends: java.swing.JLabel
Implements:
com.ibm.dse.gui.DataExchanger
The SpLabel class has the following properties:
- dataName: A data element name defined in the context or operation context.
It is of type String.
- dataToClear: Clears the data exchangers according to the value in the
dataDirection property, which can be Input, Output, or Both. Applicable to
the Clear button type.
- 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).
- 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.