<DICTIONARY> : Input Field of Dictionary Type

Java class : leon.view.LyDictionary

ROLE

An input field of dictionary type allows displaying a graphical component containing a combo with a tree.

ATTRIBUTES

<!ATTLIST DICTIONARY
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  multiple ( true | false) "false"
	  bean CDATA #IMPLIED
	  nCols NMTOKEN #IMPLIED
	  nRows NMTOKEN #IMPLIED
	  selectionType ( ALL | LEAVES_ONLY) "LEAVES_ONLY"
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  imageSelector CDATA #IMPLIED
	  enabledColor CDATA #IMPLIED
	  disabledColor CDATA #IMPLIED>
Attribute Mand. Description Default
id no DICTIONARY.id  
template no DICTIONARY.template  
multiple no Indicates whether the dictionary is multiple or not. If it is multiple, checkboxes are displayed with each leaf. false
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
nCols no Gives the number of columns of the dictionary (given in number of characters). -1
nRows no Gives the number of lines on which the hyperlinks are shown. -1
selectionType no Selection typr of the nodes of the dictionary. The following types are managed:
ALL All the nodes are selectable
LEAVES_ONLY Only leaf nodes are selectable
LEAVES_ONLY
font no DICTIONARY.font  
color no DICTIONARY.color  
fontColor no DICTIONARY.fontColor  
imageSelector no DICTIONARY.imageSelector  
enabledColor no DICTIONARY.enabledColor  
disabledColor no DICTIONARY.disabledColor  

ELEMENTS

<!ELEMENT DICTIONARY 
	  (ENTRY?)>
Element Mand. Mult. Description
ENTRY no no Root entry of the dictionary.

SAMPLE

<!-- Multiple dictionary -->
<DICTIONARY multiple="true">
	<ENTRY id="rootEntry" label="Root">
		<ENTRY id="1" label="1"/>
		<ENTRY id="2" label="2" open="true">
			<ENTRY id="2.1" label="2.1" checked="true"/>
		</ENTRY>
		<ENTRY id="3" label="3" open="true">
			<ENTRY id="3.1" label="3.1"/>
			<ENTRY id="3.2" label="3.2"/>
		</ENTRY>
		<ENTRY id="4" label="4" open="true">
			<ENTRY id="4.1" label="4.1"/>
		</ENTRY>
		<ENTRY id="5" label="5"/>
	</ENTRY>
</DICTIONARY>