About this task
The engine global setting file can be configured as follows:
- Global theme settings,you can specify these global theme constants
for your XUI files, if the widgets have not specified their own Color/Font,
they will use global settings instead.
- standardBackgroundColor: normal background color for widgets
- standardForegroundColor: normal foreground color for widgets
- standardFont: normal font for widgets
- selectionBackgroundColor: the background color when widget has been
selected
- selectionForegroundColor: the foreground color when widget has been
selected
- mandatoryBackgroundColor: the background when the required widget has
not been filled
- errorBackgroundColor: the background color when the widget has error
- errorForegroundColor: the foreground color when the widget has error
Sample configuration:
<map id="globalSettings">
<entry key="standardBackgroundColor" value="255, 255, 255"/>
<entry key="standardForegroundColor" value="0, 0, 0"/>
<entry key="standardFont" value="Arial, 12, NORMAL"/>
<entry key="selectionBackgroundColor" value ="55,55,236"/>
<entry key="selectionForegroundColor" value ="255,255,255"/>
<entry key="mandatoryBackgroundColor" value="255,255,0"/>
<entry key="errorBackgroundColor" value = "255,0,0"/>
<entry key="errorForegroundColor" value = "255, 255, 255"/>
</map>
- Global key map settings, you can specify the shortcut key for OK,
Tab and Back Tab, you can refer to org.eclipse.swt.SWT for key text and you
can use “+” to specify composed key:
Sample configuration:
<entry key="helpKeyStroke" value="F10"/>
<entry key="helpPlugin" value="BTTXMLUIEngineTest"/>
<entry key="tabKeyStroke" value="ALT+F8"/>
<entry key="backTabKeyStroke" value="F9"/>
<entry key="OKKeyStroke" value="KEYPAD_CR"/>
- Help settings, you can use eclipse help system to be the default
help system of XUI applications, you can use helpKeyStroke to specify the
shortcut key to trigger help system. For more information, you can refer to
Integrating with Eclipse help system document.
- helpKeyStroke: the key to trigger help system. The default key is “F1”
- helpPlugin: the help plug-in project id, you can integrate your help into
this plug-in, and XUI will find corresponding help using helpId.
Sample configuration:
<entry key="helpKeyStroke" value="F10"/>
<entry key="helpPlugin" value="com.ibm.btt.rcp.sample.help"/>
- i18N setting, you can specify the location of global multi-language
property file. Sample configuration:
<entry key="resourceBundlePath" value="jar:///config/global.properties"/>