BTT SWT Visual Beans Settings
Identifier:
com.ibm.btt.rcp.visualbean.runtime.settings
Since:
BTT 6.1
Description:
This extension point is
used to specify settings for SWT Visual Beans. You can configure hot keys, font,
foreground color, background color for different state of beans, and so on.
Configuration Markup:
<!ELEMENT extension (settings)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT settings EMPTY>
<!ATTLIST settings
settingClass CDATA
#IMPLIED
standardFont CDATA
#IMPLIED
optionalBackgroundColor CDATA
#IMPLIED
optionalForegroundColor CDATA
#IMPLIED
mandatoryBackgroundColor CDATA
#IMPLIED
mandatoryForegroundColor CDATA
#IMPLIED
errorBackgroundColor CDATA
#IMPLIED
errorForegroundColor CDATA
#IMPLIED
nonEditableBackgroundColor CDATA #IMPLIED
nonEditableForegroundColor CDATA #IMPLIED
nonEnabledBackgroundColor CDATA #IMPLIED
nonEnabledForegroundColor CDATA #IMPLIED
selectionBackgroundColor CDATA
#IMPLIED
selectionForegroundColor CDATA
#IMPLIED
labelForeground CDATA
#IMPLIED
helpKeyCode CDATA
#IMPLIED
helpMask CDATA
#IMPLIED
okKeyCode CDATA
#IMPLIED
okMask CDATA
#IMPLIED
tabKeyCode CDATA
#IMPLIED
tabMask CDATA
#IMPLIED
backTabKeyCode CDATA
#IMPLIED
backTabMask CDATA
#IMPLIED>
- settingClass - Indicates the class name (with path) that will
retrieve the information needed by the visual beans at design and runtime.
These values are the default values for the properties, types information, and
externalized data. The default value is
"com.ibm.btt.rcp.visualbean.core.DefaultSettings".
- standardFont - Defines the font to be used by all the visual beans.
However, if it is necessary to have one or more beans with a different font,
the font can be specified in the font property of each bean. The default value
is the system font.
- optionalBackgroundColor - Defines the background color for the
BTTText, BTTCombo, BTTList, and BTTTable beans. The default value is white.
- optionalForegroundColor - Defines the foreground color for the
BTTText, BTTCombo, BTTList, and BTTTable beans. The default value is black.
- mandatoryBackgroundColor - Defines the background color for the
BTTText, BTTCombo, BTTList, and BTTTable mandatory beans. The default value is
yellow.
- mandatoryForegroundColor - Defines the foreground color for the
BTTText, BTTCombo, BTTList, and BTTTable mandatory beans. The default value is
black.
- errorBackgroundColor - Defines the background color for the BTTText
and BTTTable bean when data is not valid. The default value is white.
- errorForegroundColor - Defines the foreground color for theBTTText
and BTTTable bean when data is not valid. The default value is red.
- nonEditableBackgroundColor - Defines the background color for
non-editable BTTText, BTTCombo, and BTTTable beans. The default value is
lightGray.
- nonEditableForegroundColor - Defines the foreground color for
non-editable BTTText, BTTCombo, and BTTTable beans. The default value is
black.
- nonEnabledBackgroundColor - Defines the background color for
non-enabled BTTText, BTTCombo, BTTList, and BTTTable beans. The default value
is gray.
- nonEnabledForegroundColor - Defines the foreground color for
non-enabled BTTText, BTTCombo, BTTList, and BTTTable beans. The default value
is black.
- selectionBackgroundColor - Defines the background color in the
selected text in BTTText, BTTCombo, BTTList, and BTTTable beans. The default
RGB value is (204, 204, 255).
- selectionForegroundColor - Defines the foreground color in the
selected text in BTTText, BTTCombo, BTTList, and BTTTable beans. The default
value is black.
- labelForeground - Defines the color for the BTTLabel text. However,
if it is necessary to have one or more beans with a different foreground
color, the color can be specified in the foreground property of each bean. The
default value is black.
- helpKeyCode - Defines the code for the key to activate the help
system. The default value is F1.
- helpMask - Defines the mask (such as ALT or CTRL) that must be
taken into account for the Help key. The default value is NO_MASK.
- okKeyCode - Defines the code for the key which, when clicked in any
component of the view (except for BTTButtons), executes the operation (if the
OK button is enabled). The default value is the ENTER key.(SWT.CR)
- okMask - Defines the mask (ALT, CTRL, etc.) that must be taken into
account for the OK key. The default value is NO_MASK.
- tabKeyCode - Defines the code for the key which, when clicked in
any component of the view, acts as the Tab key. The default value is the Tab
key.(SWT.TAB)
- tabMask - Defines the mask (such as ALT, CTRL, or SHIFT) that must
be taken into account for the Tab key. The default value is NO_MASK.
- backTabKeyCode - Defines the code for the key which, when clicked,
acts as the Back Tab key in any component of the view. The default value is
VK_TAB (the TAB key).
- backTabMask - Defines the mask (such as ALT or CTRL) that must be
taken into account for the Back Tab key. The default value is SWT.SHIFT.
Examples:
Following is an example:
<extension
point=
"com.ibm.btt.rcp.visualbean.runtime.settings"
>
<settings
backTabKeyCode=
"F5"
labelForeground=
"255,0,0"
tabKeyCode=
"F4"
/>
</extension>
API Information:
[Enter API
information here.]
Supplied Implementation:
[Enter
information about supplied implementation of this extension point.]
Licensed Materials - Property of IBM Restricted
Materials of IBM 5724-H82 (C) Copyright IBM Corp. 2007, 2008 All Rights
Reserved. US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.