When a tag is editable, the following tags allow you to specify the data type permitted by the user:
<SHORT[minvalue="value1"] [maxvalue="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<SHORT> | short | Specifies that the value in the text field must be a short
that lies within the range value1-value2 . Both the
minvalue and maxvalue
attributes are optional; if omitted, the value will be checked against the
allowable range for short integers in Java. |
<INTEGER[minvalue="value1"] [maxvalue="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<INTEGER> | integer | Specifies that the value in the text field must be an integer
that lies within the range value1-value2 . Both the
minvalue and maxvalue
attributes are optional; if omitted, the value will be checked against the
allowable range for integers in Java. |
<LONG[minvalue="value1"] [maxvalue="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<LONG> | long | Specifies that the value in the text field must be a long
that lies within the range value1-value2 . Both the
minvalue and maxvalue
attributes are optional; if omitted, the value will be checked against the
allowable range for long integers in Java. |
<FLOAT[minvalue="value1"] [maxvalue="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<FLOAT> | float | Specifies that the value in the text field must be a floating point
number which must lie within the range value1-value2 .
Both the minvalue and maxvalue
attributes are optional; if omitted, the value will be checked against the
allowable range for the double data type in Java. |
<STRING[minlength="value1"] [maxlength="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<STRING> | string | Specifies that the value in the text field must be a string whose
length is within the range value1-value2 . Both the
minlength and maxlength
attributes are optional, but at least one must be specified. |
<FORMAT[minvalue="value1"] [maxvalue="value2"]/> |
||
NAME | VALUE | DESCRIPTION |
<FORMAT> | format
format may have one of the following values:
If the data is found to be invalid according to the specified criteria, an appropriate error message will be displayed to the user. Alternatively, Refer to the com.ibm.as400.ui.framework.java.DataFormatter package for more information. |
A predefined format constant which specifies how the data in the text field should be interpreted when data is exchanged between the combo box component and its associated data object. |