|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyMenuBase
leon.view.LyMenu
public class LyMenu
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 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMenu(java.lang.String label)
label
- Text of the menu.Method Detail |
---|
public void insertItem(LyItem item, int pos)
insertItem
in class LyMenuBase
item
- The item to add to components list.pos
- Position where the sub-component is inserted.public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
setEnabled
in class LyMenuBase
enabled
- Boolean indicating if attribute enabled is set or unset.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |