<RELATION> : Input Field of Relation Type

Java class : leon.view.LyRelation

ROLE

An input field of Relation type allows choosing one or more values among a list of values.
This list offers generally application objects belonging to a same class and is used to establish a relation between an object and one or more objects of this class.
It is possible to specify whether the relation is multiple or not.

ATTRIBUTES

<!ATTLIST RELATION
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  multiple ( true | false) "false"
	  ordered ( true | false) "false"
	  bean CDATA #IMPLIED
	  nCols NMTOKEN #IMPLIED
	  nRows NMTOKEN #IMPLIED
	  autoCompletionMax NMTOKEN "0"
	  font CDATA #IMPLIED
	  enabledColor CDATA #IMPLIED
	  disabledColor CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  selectImage CDATA #IMPLIED
	  deselectImage CDATA #IMPLIED
	  selectAllImage CDATA #IMPLIED
	  deselectAllImage CDATA #IMPLIED
	  moveDownImage CDATA #IMPLIED
	  moveUpImage CDATA #IMPLIED
	  arrowDownBig CDATA #IMPLIED
	  selectedColor CDATA #IMPLIED
	  inactiveSelectedColor CDATA #IMPLIED
	  selectedFontColor CDATA #IMPLIED
	  multiSelectorSelectImage CDATA #IMPLIED
	  multiSelectorUnselectImage CDATA #IMPLIED>
Attribute Mand. Description Default
id no RELATION.id  
template no RELATION.template  
multiple no Indicates whether the relation is multiple or not. false
ordered no Indicates whether the relation is ordered or not. false
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
nCols no Gives the number of columns on which the relation is presented. -1
nRows no Gives the number of lines on which the relation is presented. -1
autoCompletionMax no Indicates whether the relation allows auto-completion or not.
0 means that auto-completion is not used, -1 means that auto-completion is used with no limit for displayed values,
any other value indicates the maximum number of values displayed at the same time.
0
font no RELATION.font  
enabledColor no RELATION.enabledColor  
disabledColor no RELATION.disabledColor  
fontColor no RELATION.fontColor  
selectImage no Image used for the selection button.  
deselectImage no Image used for the selection button.  
selectAllImage no Image used for the full selection button.  
deselectAllImage no Image used for the full deselection button.  
moveDownImage no Image of the button used to move down a value within the selection.  
moveUpImage no Image of the button used to move up a value within the selection.  
arrowDownBig no RELATION.arrowDownBig  
selectedColor no RELATION.selectedColor  
inactiveSelectedColor no RELATION.inactiveSelectedColor  
selectedFontColor no RELATION.selectedFontColor  
multiSelectorSelectImage no RELATION.multiSelectorSelectImage  
multiSelectorUnselectImage no RELATION.multiSelectorUnselectImage  

ELEMENTS

<!ELEMENT RELATION 
	  (LINK*)>
Element Mand. Mult. Description
LINK no yes List of the links offered for this relation.

SAMPLE

<!-- Multiple relation containing 3 links (the first one being selected) -->
<RELATION multiple="true">
	<LINK label="Project 1" id="prj_cls\1" selected="true"/>
	<LINK label="Project 2" id="prj_cls\2"/>
	<LINK label="Project 3" id="prj_cls\3"/>
</RELATION >

<!-- Simple relation containing 3 links (the first one being selected) -->
<RELATION multiple="false">
	<LINK label="Project 1" id="prj_cls\1" selected="true"/>
	<LINK label="Project 2" id="prj_cls\2"/>
	<LINK label="Project 3" id="prj_cls\3"/>
</RELATION >