LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.toolbar
Class LyJQToolbar

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.toolbar.LyJQToolbar
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalToolBar, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetImageInterface, LyWebComponent

public class LyJQToolbar
extends LyJQInternalView
implements LyGraphicalToolBar

Type : leon.view.web.web2.component.toolbar.LyWeb2Toolbar The peer component of LyToolBar for the web2 viewer.


Field Summary
 
Fields inherited from class leon.view.web.LyWebObject
__VERSION, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalToolBar
__VERSION
 
Constructor Summary
LyJQToolbar(LyToolBar toolbar)
          Constructor
 
Method Summary
 void addComponent(LyComponent arg0, int arg1)
          Inserts a sub-component components at given position.
 boolean containsLabel()
          Indicates if at least one of the tools of the toolbar contains a label.
 java.lang.String getAlign(LyToolBar toolbar)
          Get toolbar alignment
 java.lang.String getImagePath(LyToolBar toolbar)
          Gets the tooltip image URL.
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 java.util.List<LyComponent> getToolbarList(LyToolBar toolbar)
          Get the toolbar's elements
 boolean hasImageandTopRightToolbar(LyToolBar toolbar)
          Check if toolbar has an image and a top-right toolbar as its first component
 boolean isExpandable(LyToolBar toolbar)
          Indicates if the toolbar is expandable or not.
 boolean isFieldInstance(LyComponent component)
          Check if the component is a field
 boolean isHorizontal(LyToolBar toolbar)
          Check if toolbar is horizontal
 boolean isLabelInstance(LyComponent component)
          Check if the component is a label
 boolean isLabelNotEmpty(java.lang.String label)
          Check if the given index is not empty
 boolean isLabelRightPosition(LyToolBar toolbar)
          Check the "LY_TOOL_LABEL_RIGHT_POSITION" attribute
 boolean isToolbarInstance(LyComponent component)
          Check if the component is a toolbar
 boolean isToolInstance(LyComponent component)
          Check if the component is a tool
 boolean isTopExpandToolbar(LyToolBar toolbar)
          Check if toolbar is a top expandable toolbar
 boolean isWriteLabel(LyToolBar toolbar)
          Check the "LY_WRITE_TOOL_LABEL" attribute
 void removeComponent(LyComponent arg0)
          Removes a sub-component components.
 java.util.List<LyComponent> removeElementFromList(java.util.List<LyComponent> list, int i)
          Get a subList from the given index
 void setColor(java.lang.String color)
          Updates attribute color to the given value.
 void setImage(java.lang.String arg0)
          Updates attribute image to the given value.
 void setOpen(boolean open)
          Updates attribute open to the given value.
 void writeHtml(LyWebPageWriter arg0)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
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, refresh, 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
 

Constructor Detail

LyJQToolbar

public LyJQToolbar(LyToolBar toolbar)
Constructor

Parameters:
toolbar -
Method Detail

isHorizontal

public boolean isHorizontal(LyToolBar toolbar)
Check if toolbar is horizontal

Parameters:
toolbar -
Returns:

isTopExpandToolbar

public boolean isTopExpandToolbar(LyToolBar toolbar)
Check if toolbar is a top expandable toolbar


hasImageandTopRightToolbar

public boolean hasImageandTopRightToolbar(LyToolBar toolbar)
Check if toolbar has an image and a top-right toolbar as its first component

Parameters:
toolbar -
Returns:

getAlign

public java.lang.String getAlign(LyToolBar toolbar)
Get toolbar alignment

Parameters:
toolbar -
Returns:

isExpandable

public boolean isExpandable(LyToolBar toolbar)
Indicates if the toolbar is expandable or not.

Returns:
false if dashboards can't be expanded, true otherwise

isLabelRightPosition

public boolean isLabelRightPosition(LyToolBar toolbar)
Check the "LY_TOOL_LABEL_RIGHT_POSITION" attribute

Parameters:
toolbar -
Returns:

isWriteLabel

public boolean isWriteLabel(LyToolBar toolbar)
Check the "LY_WRITE_TOOL_LABEL" attribute

Parameters:
toolbar -
Returns:

getImagePath

public java.lang.String getImagePath(LyToolBar toolbar)
Gets the tooltip image URL.

Returns:
the tooltip image URL if there is an image, null otherwise

containsLabel

public boolean containsLabel()
Indicates if at least one of the tools of the toolbar contains a label.

Returns:
true if at least one of the tools of the toolbar contains a label, false otherwise

isToolbarInstance

public boolean isToolbarInstance(LyComponent component)
Check if the component is a toolbar

Parameters:
component -
Returns:

isToolInstance

public boolean isToolInstance(LyComponent component)
Check if the component is a tool

Parameters:
component -
Returns:

isFieldInstance

public boolean isFieldInstance(LyComponent component)
Check if the component is a field

Parameters:
component -
Returns:

isLabelInstance

public boolean isLabelInstance(LyComponent component)
Check if the component is a label

Parameters:
component -
Returns:

getToolbarList

public java.util.List<LyComponent> getToolbarList(LyToolBar toolbar)
Get the toolbar's elements

Parameters:
toolbar -
Returns:

removeElementFromList

public java.util.List<LyComponent> removeElementFromList(java.util.List<LyComponent> list,
                                                         int i)
Get a subList from the given index

Parameters:
list -
i -
Returns:

isLabelNotEmpty

public boolean isLabelNotEmpty(java.lang.String label)
Check if the given index is not empty

Parameters:
label -
Returns:

addComponent

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

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

removeComponent

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

Specified by:
removeComponent in interface LyGraphicalToolBar
Parameters:
arg0 - The components to remove to components list.

setImage

public void setImage(java.lang.String arg0)
Description copied from interface: LyGraphicalToolBar
Updates attribute image to the given value.

Specified by:
setImage in interface LyGraphicalToolBar
Specified by:
setImage in interface LySetImageInterface
Parameters:
arg0 - New value of image.

setColor

public void setColor(java.lang.String color)
Description copied from interface: LyGraphicalToolBar
Updates attribute color to the given value.

Specified by:
setColor in interface LyGraphicalToolBar
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.

setOpen

public void setOpen(boolean open)
Description copied from interface: LyGraphicalToolBar
Updates attribute open to the given value.

Specified by:
setOpen in interface LyGraphicalToolBar
Parameters:
open - Boolean indicating if attribute open is set or unset.

writeHtml

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

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

getReloadScript

public java.lang.String getReloadScript()
Description copied from class: LyJQInternalView
this method is to be implemented by internal views to get the reload script for the page element

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script

(c) January 2013 - W4 S.A.

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