|
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.LyMenuBarBase
leon.view.LyMenuBar
public class LyMenuBar
The LyMenuBar class implements generic behavior for the MENUBAR components as described in views.dtd regardless of the requested target (win, swing, html...). It represents a menu bar.
LyComponent
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 | |
---|---|
LyMenuBar()
Constructor with all required attributes. |
Method Summary | |
---|---|
void |
addItemToCache(LyItem item)
Adds an item to the cache of items. |
void |
addMenu(LyMenu menu)
Adds a sub-component menu. |
LyItem |
findItem(java.lang.String id,
java.lang.String controllerId)
Looks for the LyItem object that has a given id and a given controller. |
LyMenu |
findMenu(java.lang.String id,
java.lang.String controllerId)
Looks for the LyMenu object that has a given id and a given controller. |
boolean |
isIdle()
Indicates wether this menubar is idle or not (idle menu bar do nor refresh the menu contents in views dynamicallly. |
void |
removeMenu(LyMenu menu)
Removes a sub-component menu. |
void |
setIdle(boolean idle)
Indicates wether this menubar is idle or not (idle menu bar do nor refresh the menu contents in views dynamicallly. |
void |
setSorted(boolean sorted)
Indictates wether this menubar is Automatically sorted for its menu content or not. |
Methods inherited from class leon.view.LyMenuBarBase |
---|
cloneComponent, getColor, getFont, getFontColor, getIcon, getId, getMenu, getMenuCount, getTemplate, insertMenu, isDefaultColor, isDefaultFont, isDefaultFontColor, setColor, setFont, setFontColor, setIcon, setId, setTemplate, writeXml |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.getinterface.LyGetIdInterface |
---|
getId |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMenuBar()
Method Detail |
---|
public LyMenu findMenu(java.lang.String id, java.lang.String controllerId)
id
- the identifier of the menucontrollerId
- the identifier of the controller to which the menu should belong.
public LyItem findItem(java.lang.String id, java.lang.String controllerId)
id
- the identifier of the menu itemcontrollerId
- the identifier of the controller to which the menu item should belong.
public boolean isIdle()
public void setIdle(boolean idle)
idle
- statuspublic void addMenu(LyMenu menu)
addMenu
in class LyMenuBarBase
menu
- The menu to add to components list.public void addItemToCache(LyItem item)
item
- the item to be added to the cache.public void setSorted(boolean sorted)
sorted
- statuspublic void removeMenu(LyMenu menu)
removeMenu
in class LyMenuBarBase
menu
- The menu to remove to menus list.
java.lang.IllegalStateException
- if menus list is empty.
java.lang.IllegalArgumentException
- if menus list doesn't contain menu.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |