LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsMenuBar

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsMenuBar
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalMenuBar, LyViewComponent, LyFreeInterface, LyWebComponent

public class LyStrutsMenuBar
extends LyWebObject
implements LyGraphicalMenuBar

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

MENUBAR: Menu Bar
A menu bar allows displaying a set of menus. It can be displayed in a main window of a Leonardi application.


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
LyStrutsMenuBar(LyMenuBar menuBar)
          Constructor.
 
Method Summary
 void addMenu(LyMenu menu, int pos)
          (non-Javadoc).
 java.lang.String getRefreshContent(LyWebPageWriter pw)
          Returns the Javascript content that must be used to refresh the menubar.
 void init()
          Initialization method.
 void refresh()
          (non-Javadoc).
 void removeMenu(LyMenu menu)
          (non-Javadoc).
 void setLastFrameName(java.lang.String frame)
          Force the value of the _lastFrameName variable.
 java.lang.String writeContent(LyWebPageWriter pw, java.lang.String frameVar)
          Writes HTML description corresponding to sub-menu labels.
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
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

LyStrutsMenuBar

public LyStrutsMenuBar(LyMenuBar menuBar)
Constructor.

Parameters:
menuBar - the menu bar component
Method Detail

init

public void init()
Initialization method.
Sets the menu font.


writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

writeContent

public java.lang.String writeContent(LyWebPageWriter pw,
                                     java.lang.String frameVar)
Writes HTML description corresponding to sub-menu labels.

Parameters:
pw - page writer
frameVar - name of the Javascript var used for frame containing menubar

setLastFrameName

public void setLastFrameName(java.lang.String frame)
Force the value of the _lastFrameName variable.

Parameters:
frame - the new value of the _lastFrameName variable.

addMenu

public void addMenu(LyMenu menu,
                    int pos)
(non-Javadoc).

Specified by:
addMenu in interface LyGraphicalMenuBar
Parameters:
menu - The menus to add to menus list.
pos - Position where the sub-component is inserted.
See Also:
leon.view.graphic.LyGraphicalMenuBar#addComponent(leon.view.LyComponent, int)

removeMenu

public void removeMenu(LyMenu menu)
(non-Javadoc).

Specified by:
removeMenu in interface LyGraphicalMenuBar
Parameters:
menu - The menus to remove to menus list.
See Also:
leon.view.graphic.LyGraphicalMenuBar#removeComponent(leon.view.LyComponent)

getRefreshContent

public java.lang.String getRefreshContent(LyWebPageWriter pw)
Returns the Javascript content that must be used to refresh the menubar.

Parameters:
pw - Current page writer.
Returns:
the Javascript that performs a refresh of the menubar struts component.

refresh

public void refresh()
(non-Javadoc).

Overrides:
refresh in class LyWebObject
See Also:
LyWebObject.refresh()

(c) January 2013 - W4 S.A.

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