<NUMBER> : Number field

Java class : leon.info.LyNumberFieldInfo

ROLE

This element describes a numeric attribute. Several numeric types are supported: short integer, integer, long integer, float, double. Information about that kind of field could be completed by a format, a minimum value, a maximum value, an increment, a number of decimals, a unit and a default value.

ATTRIBUTES

<!ATTLIST NUMBER
	  id ID #REQUIRED>
Attribute Mand. Description Default
id yes Number field identifier.  

ELEMENTS

<!ELEMENT NUMBER 
	  (%FIELD_BEGIN;,
	   (UNITS | UNIT)?,
	   PITCH?,
	   DECIMALS?,
	   FUNCTION?,
	   %FIELD_END;)>
Element Mand. Mult. Description
FIELD_BEGIN
yes no Begin of a field description.
UNITS yes no Dictionary of units for this field.
UNIT yes no This is the unit displayed near the values. Preserved for upward compatibility.
PITCH no no Increment. This is used inside the graphical user interface when the user selects the up or down arrows near the field.
DECIMALS no no Number of decimals that can be selected and displayed. A negative value means no limit on number of decimals. Default value is ?1 for types FLOAT and DOUBLE, 0 for other types.
FUNCTION no no Function that should be used in footer cells inside the field column of a table.
FIELD_END
yes no End of a field description.