LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyMenu

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyMenuBase
          extended by leon.view.LyMenu
All Implemented Interfaces:
LyGetControllerInterface, LyGetIdInterface, LyGetLabelInterface, LySetControllerInterface, LySetEnabledInterface

public class LyMenu
extends LyMenuBase

The LyMenu class is a generated Java implementation that corresponds to the element MENU of the descriptive grammar of the views (views.dtd). <MENU> : Menu A menu contains a set of menu, sub-menus entries and separators.

See Also:
See also tag MENU of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyMenu(java.lang.String label)
          Constructor with all required attributes.
 
Method Summary
 void insertItem(LyItem item, int pos)
          Inserts a sub-component item at given position.
 void setEnabled(boolean enabled)
          Sets attribute enabled to the given value.
 
Methods inherited from class leon.view.LyMenuBase
addItem, addMenu, addSep, cloneComponent, getColor, getComponent, getComponentCount, getController, getFont, getFontColor, getId, getLabel, getTemplate, insertMenu, insertSep, isDefaultColor, isDefaultFont, isDefaultFontColor, isEnabled, removeItem, removeMenu, removeSep, setColor, setController, setFont, setFontColor, setId, setLabel, setTemplate, writeXml
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyMenu

public LyMenu(java.lang.String label)
Constructor with all required attributes.

Parameters:
label - Text of the menu.
Method Detail

insertItem

public void insertItem(LyItem item,
                       int pos)
Inserts a sub-component item at given position.

Overrides:
insertItem in class LyMenuBase
Parameters:
item - The item to add to components list.
pos - Position where the sub-component is inserted.

setEnabled

public void setEnabled(boolean enabled)
Sets attribute enabled to the given value.

Specified by:
setEnabled in interface LySetEnabledInterface
Overrides:
setEnabled in class LyMenuBase
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com