leon.view
Class LyPopupMenu
java.lang.Object
leon.view.LyComponent
leon.view.LyPopupMenuBase
leon.view.LyPopupMenu
- All Implemented Interfaces:
- LyGetControllerInterface, LyGetIdInterface, LySetControllerInterface, LySetEnabledInterface
public class LyPopupMenu
- extends LyPopupMenuBase
The LyPopupMenu class implements generic behavior for the POPUP_MENU components as described in
views.dtd regardless of the requested target (win, swing, html...). It represents popup menu.
- See Also:
LyComponent
Field Summary |
static java.lang.String |
__VERSION
|
Constructor Summary |
LyPopupMenu()
Constructor with all required attributes. |
Methods inherited from class leon.view.LyPopupMenuBase |
addItem, addMenu, addSep, cloneComponent, getColor, getComponent, getComponentCount, getController, getFont, getFontColor, getId, getStyle, getStyle, getTemplate, getX, getY, insertItem, insertMenu, insertSep, isDefaultColor, isDefaultFont, isDefaultFontColor, isEnabled, setColor, setController, setEnabled, setFont, setFontColor, setId, setStyle, setTemplate, setX, setY, 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, 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 |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyPopupMenu
public LyPopupMenu()
- Constructor with all required attributes.
setEnvironment
public void setEnvironment(LyEnvironment environment)
- Set Environment : popup have no parent.
getEnvironment
public LyEnvironment getEnvironment()
- Get Environment : popup have no parent.
- Overrides:
getEnvironment
in class LyComponent
removeItem
public void removeItem(LyItem item)
- Removes a sub-component item.
- Overrides:
removeItem
in class LyPopupMenuBase
- Parameters:
item
- The item to remove to components list.
- Throws:
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain item.
removeSep
public void removeSep(int pos)
- Removes a separator at the given position.
- Overrides:
removeSep
in class LyPopupMenuBase
- Parameters:
pos
- Position where the separator is removed.
- Throws:
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain a separator at the
given position.
removeMenu
public void removeMenu(LyMenu menu)
- Removes a sub-component menu.
- Overrides:
removeMenu
in class LyPopupMenuBase
- Parameters:
menu
- The menu to remove to components list.
- Throws:
java.lang.IllegalStateException
- if components list is empty.
java.lang.IllegalArgumentException
- if components list doesn't contain menu.
Website: W4 S.A., contact us: support@w4global.com