<FORMAT> : Format

Java class : leon.info.LyFormat

ROLE

This element is available for the TEXT, NUMBER, DATE and FILE fields. It defines a format that is applied inside the field during the selection of a value.
The definition of this format depends on the type of the field. More details will be given further in this document.

ATTRIBUTES

<!ATTLIST FORMAT
	  value CDATA #IMPLIED
	  editable ( true | false) "false"
	  nCols NMTOKEN #IMPLIED
	  javaName NMTOKEN #IMPLIED>
Attribute Mand. Description Default
value no Value of the format. The syntax is the one specified for the text input widgets. If a format is specified, it is attached to the text field and used to facilitate the user while typing in. If no format is specified, a default text field is used.  
editable no Indicates whether the format is used in edition or not. If not, the usual input widget is displayed in edition. false
nCols no Size of the text field used in edition.  
javaName no Full name of the Java class used to format
(leon.info.infointerface.LyFormatterInterface interface).
 

SAMPLE

<!-- Format of an Internet Protocol (IP) address -->
<FORMAT value="[0-255].[0-255].[0-255].[0-255]"/>

<!--Telephone number with 10 digits -->
<FORMAT value="[0-99] [0-99] [0-99] [0-99] [0-99]"/>