Class: com.ibm.btt.rcp.visualbean.BTTCombo
Extends: org.eclipse.swt.widgets.Combo
Implements:
- com.ibm.btt.rcp.visualbean.core.DataExchangerWithList
- com.ibm.btt.rcp.visualbean.core.GUIControl
- com.ibm.btt.rcp.visualbean.event.ErrorMessageGenerator
- org.eclipse.swt.events.SelectionListener
- org.eclipse.swt.events.FocusListener
The BTTCombo class has the following properties:
- BTT_activatedOkKey: boolean. If true, focus on the Combo box, 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_alternativeDataName: A data element name defined in the context.
It is of type String. If this property is set, the Bean's BTTCoordinatedComp
will write to the specified dataElement whenever it writes to the date element
specified by the dataName property. Both data elements will contain the same
value after the first writes are done.
- BTT_BeansReactions: A class name. When a bean changes states and the end
state is a non-error state, the bean will call the beanReaction(java.awt.Component)
static method of the specified class.
- BTT_colors: Allows different colors for mandatory, background, or foreground,
etc., to be specified, overriding those defined settings.
- BTT_helpID: Identifier for the help function. The static method showHelp(String
helpId) is called with this property as input when the Help key is pressed.
If this property is not defined, the HelpId of the composite where the box
is located is used. If that composite's helpId property is not defined, the
parent composites are searched recursively until the property is found or
the BTTCoordinatedComp is reached. If the helpID value is not found at the
BTTCoordinatedComp, null is used.
- BTT_dataNameForList: A data collection (keyed or indexed) name defined
in the context or operation context. Values in the collection must be defined
as String. If the data collection is a keyed collection and you intend to
use keys as values in the list, they must also be defined as String.
- BTT_dataName: A data element name defined in the context or operation
context. It is of type String.
- BTT_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.
- BTT_mandatory: Boolean. If true, the combo requires a selected item.
- BTT_navigationParameters: An object that contains properties to facilitate
navigation between views. (For more information about this object see NavigationParameters
object description.) Only the properties that are needed for the specified
type are significant (see the type property, below).
- BTT_dataDirection: Specifies the direction in which a consistency check
is made between the associated data element and the bean. Following are the
possible values:
- Input: When the combo box is selected, the data element in dataName (and
alternativeDataName) associated with the bean is updated.
- Output: When the data element in dataName associated with the bean changes,
the combo box is updated.
- Both: Both the Input and Output behaviors occur.
- BTT_type: Specifies the type of the combo box. Possible values are Default,
OK, Clear, Close, Repeat, Euro, EMU Currency, Help, Previous View, Next View,
Undo, Cancel, Open View, None, Close_Navigation, and Execute Operation.
- BTT_useKeyValues: Boolean. If true, the combo box list contains the keys
of the collection; otherwise, it contains the values of the collection. If
the dataNameForList property contains an IndexedCollection, then keys will
be the index.
- BTT_valueInContext: Specifies which data to set in the context. Following
are the possible values:
- value: The context contains the values of the collections.
- id: The context contains the keys of the collections.