<ITEM> : Menu entry

Java class : leon.view.LyItem

ROLE

A menu entry allows executing an action, as when using an action button. The entry can be of check box type (checkbox attribute) and can open a dialog window (dialog attribute).

ATTRIBUTES

<!ATTLIST ITEM
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #REQUIRED
	  shortcut CDATA #IMPLIED
	  controller CDATA #IMPLIED
	  enabled ( true | false) "true"
	  checkBox ( true | false) "false"
	  checked ( true | false) "false"
	  dialog ( true | false) "false"
	  image CDATA #IMPLIED
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the menu entry.  
template no ITEM.template  
label yes Text of the menu entry.  
shortcut no Keyboard shortcut of menu entry.
The expected value is an alphanumeric character that is not case sensitive.
 
controller no Reference of the controller that manages the menu entry (i.e. handles user demands and refresh content).  
enabled no Indicates whether the menu entry is enabled or not (true if it is enabled). true
checkBox no Indicates whether the menu entry is of check box type or not. false
checked no Indicates whether the menu entry is selected or not.
This value is used only if the entry is of check box type.
false
dialog no Indicates whether the action generated by the menu entry opens a dialog window or not.
At the display time, suspension points are added if the attribute is set to ?true?
false
image no Image associated to the menu item.  
font no ITEM.font  
color no ITEM.color  
fontColor no ITEM.fontColor  

SAMPLE

<!-- Print menu entry -->
<ITEM label="Print" shortcut="P" image="LY_ACTION_PRINT" dialog="true"/>

<!-- Menu entry of check box type -->
<ITEM label="Display label" shortcut="L" checkbox="true" checked="true"/>