|
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.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsToolBar
public class LyStrutsToolBar
This class implements the ToolBar object (as described in the dtd) for web viewer.
TOOLBAR: Tool Bar
A tool bar allows displaying a set of action buttons. A tool bar can itself contain tool bars,
which allows to group together the action buttons into logical groups and sub-groups.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static boolean |
EXPAND_DASHBOARD
Indicates if dashboards may be expanded. |
static boolean |
HORIZONTAL_DASHBOARD
Indicates if dashboards must be horizontal. |
static boolean |
LABEL_WRAP
Indicates if labels in the dashboards must be nowrap. |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsToolBar(LyToolBar toolBar)
Constructor. |
Method Summary | |
---|---|
void |
addComponent(LyComponent component,
int pos)
(non-Javadoc). |
int[] |
computeSize()
Computes the toolbar size. |
boolean |
containsLabel()
Indicates if at least one of the tools of the toolbar contains a label. |
boolean |
isExpandable()
Indicates if the toolbar is expandable or not. |
boolean |
isHorizontal()
Indicates if the toolbar is horizontal or not. |
boolean |
isWrap()
Indicates if the toolbar is wrapped or not. |
void |
refresh()
(non-Javadoc). |
void |
removeComponent(LyComponent component)
(non-Javadoc). |
void |
setColor(java.lang.String color)
(non-Javadoc). |
void |
setImage(java.lang.String image)
(non-Javadoc). |
void |
setOpen(boolean open)
(non-Javadoc). |
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 |
---|
public static final java.lang.String __VERSION
public static boolean HORIZONTAL_DASHBOARD
public static boolean EXPAND_DASHBOARD
public static boolean LABEL_WRAP
Constructor Detail |
---|
public LyStrutsToolBar(LyToolBar toolBar)
toolBar
- the tool bar componentMethod Detail |
---|
public void writeHtml(LyWebPageWriter pw)
writeHtml
in interface LyWebComponent
pw
- the page writerLyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalToolBar
setColor
in interface LySetColorInterface
color
- New value of color.LySetColorInterface.setColor(java.lang.String)
public boolean isExpandable()
public boolean isHorizontal()
public boolean isWrap()
public boolean containsLabel()
public int[] computeSize()
public void setOpen(boolean open)
setOpen
in interface LyGraphicalToolBar
open
- Boolean indicating if attribute open is set or unset.LyGraphicalToolBar.setOpen(boolean)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalToolBar
setImage
in interface LySetImageInterface
image
- New value of image.LySetImageInterface.setImage(java.lang.String)
public void addComponent(LyComponent component, int pos)
addComponent
in interface LyGraphicalToolBar
component
- The components to add to components list.pos
- Position where the sub-component is inserted.LyGraphicalToolBar.addComponent(leon.view.LyComponent, int)
public void removeComponent(LyComponent component)
removeComponent
in interface LyGraphicalToolBar
component
- The components to remove to components list.LyGraphicalToolBar.removeComponent(leon.view.LyComponent)
public void refresh()
refresh
in class LyWebObject
LyWebObject.refresh()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |