<LIST> : Input Field of List Type

Java class : leon.view.LyList

ROLE

An input field of List type allows choosing one or more values among a discrete list of values.
It is possible to specify if the selection is multiple or not as well as the height of the list.

ATTRIBUTES

<!ATTLIST LIST
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  selectionMode ( SINGLE | MULTIPLE) "SINGLE"
	  nCols NMTOKEN #IMPLIED
	  nRows NMTOKEN #IMPLIED
	  bean CDATA #IMPLIED
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  tipFont CDATA #IMPLIED
	  tipColor CDATA #IMPLIED
	  tipFontColor CDATA #IMPLIED
	  selectedColor CDATA #IMPLIED
	  inactiveSelectColor CDATA #IMPLIED
	  selectedFontColor CDATA #IMPLIED
	  inactiveSelectFontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id no LIST.id  
template no LIST.template  
selectionMode no Indicates the type of selection (simple or multiple). SINGLE
nCols no Gives the height (number of columns) on which the list is shown (given in number of characters). -1
nRows no Gives the width (number of rows) on which the list is shown (given in number of characters). -1
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
font no LIST.font  
color no LIST.color  
fontColor no LIST.fontColor  
tipFont no LIST.tipFont  
tipColor no LIST.tipColor  
tipFontColor no LIST.tipFontColor  
selectedColor no LIST.selectedColor  
inactiveSelectColor no LIST.inactiveSelectColor  
selectedFontColor no LIST.selectedFontColor  
inactiveSelectFontColor no LIST.inactiveSelectFontColor  

ELEMENTS

<!ELEMENT LIST 
	  (LIST_OPTION*)>
Element Mand. Mult. Description
LIST_OPTION no yes List of the options offered for this list.

SAMPLE

<!-- List containing 7 options (the second one being selected) -->
<LIST height='4'>
	<LIST_OPTION id='0' label='LY_PIE' image='LY_CHART_PIE'/>
	<LIST_OPTION id='1' label='LY_SCATTER_PLOT' image='LY_CHART_SCATTER_PLOT'
		selected='true'/>
	<LIST_OPTION id='2' label='LY_PLOT' image='LY_CHART_PLOT'/>
	<LIST_OPTION id='3' label='LY_STACK_AREA' image='LY_CHART_AREA'/>
	<LIST_OPTION id='4' label='LY_BAR' image='LY_CHART_BAR'/>
</LIST>