<TEXT> : Text field

Java class : leon.info.LyTextFieldInfo

ROLE

This element describes a textual field. The text may be composed of a single line or several lines. Information about that kind of field could be completed by a format, the number of lines, the number of rows, the number of columns, the maximum number of characters and a default value.

ATTRIBUTES

<!ATTLIST TEXT
	  id ID #REQUIRED
	  template IDREF #IMPLIED
	  javaName NMTOKEN #IMPLIED
	  multiple ( true | false) "false"
	  behavior NMTOKEN #IMPLIED
	  type ( STANDARD | RICH) "STANDARD"
	  multilingual ( true | false) "false">
Attribute Mand. Description Default
id yes Identifier of the field.  
template no Reference to the text field used as pattern.  
javaName no Name of the Java attribute that corresponds to the current field when automatic code generation is used. The default value is the name of the current field.  
multiple no Indicates if a value of the field is composed of a single line or several lines. false
behavior no Name of the Java class representing the behavior of this field. Reserved for a future use.  
type no Type of the text : standard or rich text. STANDARD
multilingual no TEXT.multilingual false

ELEMENTS

<!ELEMENT TEXT 
	  (%FIELD_BEGIN;,
	   (FORMAT | ((CHARTYPE | CHARTYPE_REF)*, (REGEX | REGEX_REF)?, NROWS?, NCOLS?, NCHARS?)),
	   ENCODING?,
	   MIN?,
	   MAX?,
	   (UNITS | UNITS_REF)?,
	   UNIT_REF?,
	   DEFAULT?,
	   %FIELD_END;)>
Element Mand. Mult. Description
FIELD_BEGIN
yes no Begin of a field description.
FORMAT yes no Format.
CHARTYPE yes no Set of characters authorized on this field.
CHARTYPE_REF yes no Set of characters reference authorized on this field.
REGEX yes no Regular expression representing a validating input format.
REGEX_REF yes no Regular expression reference representing a validating input format.
NROWS no no Number of rows
NCOLS no no Number of columns
NCHARS no no Maximum number of characters.
ENCODING no no Encoding function.
MIN no no Minimum number of characters.
MAX no no Maximum number of characters (equivalent to NCHARS).
UNITS yes no Dictionary of units of the field.
UNITS_REF yes no Dictionary units reference for the field.
UNIT_REF no no Unit reference of the field.
DEFAULT no no Default value: this value is inserted into the text field inside a form at the start of creation of an object. If a format is defined, this value should comply with it.
FIELD_END
yes no End of a field description.

SAMPLE 1

<TEXT id="br_desc" multiple='true'>
	<F_BIND value="DESCRIPTION"/>
	<NAME value="BR_DESCRIPTION"/>
	<TAB value="TAB_EMISSION"/>
	<F_MARKS create='true' set='true'>
		<MARK name='EMISSION'/>
	</F_MARKS>
	<NROWS value="10"/>
	<NCOLS value="60"/>
</TEXT>

SAMPLE 2

<TEXT id="br_title">
	<F_BIND value="TITLE"/>
	<NAME value="BR_TITLE"/>
	<TAB value="TAB_EMISSION"/>
	<F_MARKS create='true'>
		<MARK name='EMISSION'/>
	</F_MARKS>
	<NCOLS value="60"/>
	<NCHARS value="30"/>
</TEXT>