LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyPopupMenu

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyPopupMenuBase
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyPopupMenuBase
LyPopupMenuBase.Style
 
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
LyPopupMenu()
          Constructor with all required attributes.
 
Method Summary
 LyEnvironment getEnvironment()
          Get Environment : popup have no parent.
 void removeItem(LyItem item)
          Removes a sub-component item.
 void removeMenu(LyMenu menu)
          Removes a sub-component menu.
 void removeSep(int pos)
          Removes a separator at the given position.
 void setEnvironment(LyEnvironment environment)
          Set Environment : popup have no parent.
 
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
 

Field Detail

__VERSION

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

LyPopupMenu

public LyPopupMenu()
Constructor with all required attributes.

Method Detail

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.

(c) January 2013 - W4 S.A.

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