<MENU> : Menu

Java class : leon.view.LyMenu

ROLE

A menu contains a set of menu, sub-menus entries and separators.

ATTRIBUTES

<!ATTLIST MENU
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  label CDATA #REQUIRED
	  controller CDATA #IMPLIED
	  enabled ( true | false) "true"
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id no Identifier of the menu.  
template no MENU.template  
label yes Text of the menu.  
controller no Reference of the controller that manages the menu (i.e. handles user demands and refresh content).  
enabled no Indicates whether the menu is enabled or not (true if it is enabled). true
font no MENU.font  
color no MENU.color  
fontColor no MENU.fontColor  

ELEMENTS

<!ELEMENT MENU 
	  (ITEM |
	   SEP |
	   MENU)*>
Element Mand. Mult. Description
ITEM yes no Menu entries contained in the menu.
SEP yes no Sepator used to organize entries within the menu.
MENU yes no Sub-menus of the menu.

SAMPLE

<!-- Menu containing 2 menu entries -->
<MENU label="File">
	<ITEM id="LY_ACTION_PRINT" label="Print"/>
	<ITEM id="LY_ACTION_CLOSE" label="Close"/>
</MENU>