109 lines
6.9 KiB
Plaintext
109 lines
6.9 KiB
Plaintext
|
|
<type name="text" extends="scrollable-component" inherit-styles="true">
|
|||
|
|
<builder jar="text.jar">
|
|||
|
|
<thin-swt class="com.foundation.tcv.swt.builder.TextBuilder"/>
|
|||
|
|
<thick-swt class="com.foundation.view.swt.builder.TextBuilder"/>
|
|||
|
|
</builder>
|
|||
|
|
|
|||
|
|
<style name="read only"/>
|
|||
|
|
<style name="wrap"/>
|
|||
|
|
<style name="center">
|
|||
|
|
<alter name="left"/>
|
|||
|
|
<alter name="right"/>
|
|||
|
|
</style>
|
|||
|
|
<style name="right">
|
|||
|
|
<alter name="center"/>
|
|||
|
|
<alter name="left"/>
|
|||
|
|
</style>
|
|||
|
|
<style name="left">
|
|||
|
|
<alter name="center"/>
|
|||
|
|
<alter name="right"/>
|
|||
|
|
</style>
|
|||
|
|
<!-- Note: Multi-line should never be used with anything other than the text-format. -->
|
|||
|
|
<style name="multi line">
|
|||
|
|
<alter name="single line"/>
|
|||
|
|
</style>
|
|||
|
|
<style name="single line">
|
|||
|
|
<alter name="multi line"/>
|
|||
|
|
</style>
|
|||
|
|
|
|||
|
|
<!-- Only allowed if style != read only -->
|
|||
|
|
<property name="auto-synchronize-text" type="boolean" required="false" default="false"/>
|
|||
|
|
<!-- Only allowed if style != read only -->
|
|||
|
|
<!-- Must be between [0..10,000] -->
|
|||
|
|
<property name="auto-synchronize-text-delay" type="long" required="false" default="0"/>
|
|||
|
|
<!-- Whether the validation will run when the text field synchronizes. This should probably always be false if not auto synchronizing. -->
|
|||
|
|
<property name="auto-validate" type="boolean" required="false" default="false"/>
|
|||
|
|
<!-- The text displayed when the control does not have focus and there is no value being displayed. -->
|
|||
|
|
<property name="ghost-text" type="string" required="false" allow-resource="true"/>
|
|||
|
|
<!-- The foreground color (text color) used when displaying the ghost text. -->
|
|||
|
|
<property name="ghost-text-color" type="color" required="false" allow-resource="true"/>
|
|||
|
|
<property name="select-on-focus" type="boolean" required="false" default="false"/>
|
|||
|
|
|
|||
|
|
<!-- The foreground color (text color) used when displaying the ghost text. -->
|
|||
|
|
<association function="ghost-text-color" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefColor"/>
|
|||
|
|
|
|||
|
|
<!-- If a data-type is not specified then a string type will be assumed. TODO: Would it be nice to say this is required and the default is text-formatted? -->
|
|||
|
|
<component type="format" required="true" mulitple="false"/>
|
|||
|
|
|
|||
|
|
<type name="format" abstract="true">
|
|||
|
|
</type>
|
|||
|
|
<type name="text-format" extends="format">
|
|||
|
|
<!-- The default text to display if the text association is not specified or its value is null. -->
|
|||
|
|
<property name="text" type="string" required="false" allow-resource="true"/>
|
|||
|
|
<property name="echo-char" type="character" required="false"/>
|
|||
|
|
<!-- Whether null is an acceptable value, otherwise an empty string will be used. -->
|
|||
|
|
<property name="use-null" type="boolean" required="false"/>
|
|||
|
|
|
|||
|
|
<!-- The value association is a duplicate of the text association. Eventually this will be removed in favor of the text association. -->
|
|||
|
|
<association function="value" association-type="single" unique-row-type="true" getter="required" setter="optional" data-type="java.lang.String" allow-decorations="true" allow-resource="true"/>
|
|||
|
|
<association function="text" association-type="single" unique-row-type="true" getter="required" setter="optional" data-type="java.lang.String" allow-decorations="true" allow-resource="true"/>
|
|||
|
|
</type>
|
|||
|
|
<type name="integer-format" abstract="true" extends="format">
|
|||
|
|
<!-- The format uses the syntax defined in java.text.DecimalFormat and may override other options such as the max/min digits properties. -->
|
|||
|
|
<!-- The '<27>' character is used to represent currency, '<27>' represents per mill, % represents percent, '#' represents any number, '0' represents a zero if there isn't a digit there, ',' represents a separator, '.' represents a decimal, ';' is used to separate the positive from the negative number pattern. -->
|
|||
|
|
<property name="format" type="string" required="false" default-value=""/>
|
|||
|
|
<property name="locale" type="string" required="false" default-value=""/>
|
|||
|
|
<property name="max-integer-digits" type="integer" required="false" default-value=""/>
|
|||
|
|
<property name="min-integer-digits" type="integer" required="false" default-value=""/>
|
|||
|
|
<!-- Whether the formatting should use grouping characters (ie: 1,000). -->
|
|||
|
|
<property name="group" type="boolean" required="false" default-value=""/>
|
|||
|
|
<!-- Whether the formatting of the text should be updated in realtime (veruses when the focus is lost). -->
|
|||
|
|
<property name="realtime" type="boolean" required="false" default-value="true"/>
|
|||
|
|
<!-- The model data type which is converted to and from the displayed text. -->
|
|||
|
|
<property name="model-type" type="string" required="false" default-value="integer">
|
|||
|
|
<values>
|
|||
|
|
<value name="byte"/>
|
|||
|
|
<value name="short"/>
|
|||
|
|
<value name="integer"/>
|
|||
|
|
<value name="long"/>
|
|||
|
|
<value name="float"/>
|
|||
|
|
<value name="double"/>
|
|||
|
|
<value name="big-decimal"/>
|
|||
|
|
</values>
|
|||
|
|
</property>
|
|||
|
|
<property name="max-value" type="big-decimal" required="false" default-value=""/>
|
|||
|
|
<property name="min-value" type="big-decimal" required="false" default-value=""/>
|
|||
|
|
<!-- The default value is used if the field has no value. The default value will be read using the given or default formatting. -->
|
|||
|
|
<property name="default-value" type="big-decimal" required="false" default-value=""/>
|
|||
|
|
<!-- The optional color used when the number is negative. -->
|
|||
|
|
<property name="negative-color" type="color" required="false" default-value=""/>
|
|||
|
|
|
|||
|
|
<!-- The format uses the syntax defined in java.text.DecimalFormat and may override other options such as the max/min digits properties. -->
|
|||
|
|
<association function="format" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.lang.String" allow-decorations="false"/>
|
|||
|
|
<association function="locale" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.util.Locale" allow-decorations="false"/>
|
|||
|
|
<association function="value" association-type="single" unique-row-type="true" getter="required" setter="optional" data-type="java.lang.Number" allow-decorations="true"/>
|
|||
|
|
<association function="max-value" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.math.BigDecimal" allow-decorations="false"/>
|
|||
|
|
<association function="min-value" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="java.math.BigDecimal" allow-decorations="false"/>
|
|||
|
|
<association function="negative-color" association-type="single" unique-row-type="true" getter="required" setter="none" data-type="com.foundation.view.JefColor" allow-decorations="false"/>
|
|||
|
|
</type>
|
|||
|
|
<type name="decimal-format" extends="integer-format">
|
|||
|
|
<property name="max-fraction-digits" type="integer" required="false" default-value=""/>
|
|||
|
|
<property name="min-fraction-digits" type="integer" required="false" default-value=""/>
|
|||
|
|
<property name="multiplier" type="integer" required="false" default-value=""/>
|
|||
|
|
</type>
|
|||
|
|
<type name="percent-format" extends="decimal-format">
|
|||
|
|
</type>
|
|||
|
|
<type name="currency-format" extends="decimal-format">
|
|||
|
|
</type>
|
|||
|
|
</type>
|