<UNIT> : Unit

Java class : leon.view.LyFieldUnit

ROLE

A unit allows adding to a field a combo for selecting a unit or a unit label.

ATTRIBUTES

<!ATTLIST UNIT
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED>
Attribute Mand. Description Default
id no UNIT.id  
template no UNIT.template  

ELEMENTS

<!ELEMENT UNIT 
	  ((RELATION | LABEL)?,
	   CONSTRAINT?)>
Element Mand. Mult. Description
RELATION yes no Combo for selecting a unit.
LABEL yes no Unit label.
CONSTRAINT no no Positioning constraint of the unit.

SAMPLE

<UNIT>
	<LABEL label="minutes"/>
</UNIT>

<UNIT>
	<RELATION>
		<LINK id="gramme" label="gramme" selected="true"/>
		<LINK id="kilogramme" label="kilogramme"/>
	</RELATION>
</UNIT>