LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsMenu

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsMenu
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalMenu, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetVisibleInterface, LyWebComponent

public class LyStrutsMenu
extends LyWebObject
implements LyGraphicalMenu, LySetVisibleInterface

This class implements the Menu object (as described in the dtd) for struts viewer.

MENU: Menu
A menu contains a set of menu, sub-menus entries and separators.

See Also:
LyMenu

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsMenu(LyMenu menu)
          Class constructor of a Menu object for the struts target.
 
Method Summary
 void addComponent(LyComponent component, int pos)
          Inserts a sub-component components at given position.
 void refresh()
          Refresh frame containing this web object.
 void removeComponent(LyComponent component)
          Removes a sub-component components.
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void setVisible(boolean status)
          Sets the visibility status of this component.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Field Detail

__VERSION

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

LyStrutsMenu

public LyStrutsMenu(LyMenu menu)
Class constructor of a Menu object for the struts target.

Parameters:
menu - the generic Menu defined for every type of view targets
Method Detail

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: LyGraphicalMenu
Updates attribute enabled to the given value.

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

addComponent

public void addComponent(LyComponent component,
                         int pos)
Description copied from interface: LyGraphicalMenu
Inserts a sub-component components at given position.

Specified by:
addComponent in interface LyGraphicalMenu
Parameters:
component - The components to add to components list.
pos - Position where the sub-component is inserted.

removeComponent

public void removeComponent(LyComponent component)
Description copied from interface: LyGraphicalMenu
Removes a sub-component components.

Specified by:
removeComponent in interface LyGraphicalMenu
Parameters:
component - The components to remove to components list.

refresh

public void refresh()
Description copied from class: LyWebObject
Refresh frame containing this web object.

Overrides:
refresh in class LyWebObject

setVisible

public void setVisible(boolean status)
Description copied from interface: LySetVisibleInterface
Sets the visibility status of this component.

Specified by:
setVisible in interface LySetVisibleInterface
Parameters:
status - new visibility status, if true the component will be shown, if false it will be hiden

(c) January 2013 - W4 S.A.

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