LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.toolbar.tool
Class LyJQTool

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.tool.LyJQTool
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalTool, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetImageInterface, LySetLabelInterface, LyWebComponent

public class LyJQTool
extends LyJQInternalView
implements LyGraphicalTool

Type : leon.view.web.jquery.component.toolbar.tool.LyJQTool The peer component of LyTool for the jquery 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.LyGraphicalTool
__VERSION
 
Constructor Summary
LyJQTool(LyTool tool)
          Constructor
 
Method Summary
 boolean containsToolBar(LyTool tool)
          Indicates if the tool contains an area which contains only a toolbar or not.
 int getImageFirstSize()
           
 int getImageSecondSize()
           
 java.lang.String getReloadScript()
          (non-Javadoc)
 LyToolBar getSubToolbar(LyTool tool)
          Gets the sub toolbar (toolbar in tool's area)
 java.lang.String getToolTip(java.lang.String label)
          Gets the tooltip
 boolean isAreaOpened(LyTool tool)
          Check if subArea is opened
 boolean isLabelEmpty(java.lang.String label)
          Check if the given label is empty
 boolean isSeparator(LyTool tool)
          Check if the tool is a separator
 boolean isSmallDashboard(LyTool tool)
           
 boolean isToggleStyle(LyTool tool)
          Check if the tool has the toggle style
 void setEnabled(boolean enabled)
          (non-Javadoc)
 void setImage(java.lang.String image)
          (non-Javadoc)
 void setLabel(java.lang.String label)
          (non-Javadoc)
 void setPressed(boolean pressed)
          (non-Javadoc)
 void setTooltip(java.lang.String tooltip)
          (non-Javadoc)
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc)
 
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

LyJQTool

public LyJQTool(LyTool tool)
Constructor

Parameters:
tool -
Method Detail

isToggleStyle

public boolean isToggleStyle(LyTool tool)
Check if the tool has the toggle style

Parameters:
tool -
Returns:

isSeparator

public boolean isSeparator(LyTool tool)
Check if the tool is a separator

Parameters:
tool -
Returns:

containsToolBar

public boolean containsToolBar(LyTool tool)
Indicates if the tool contains an area which contains only a toolbar or not.

Returns:
true if the tool contains an area which contains only a toolbar, false otherwise

isAreaOpened

public boolean isAreaOpened(LyTool tool)
Check if subArea is opened

Parameters:
tool -
Returns:

getSubToolbar

public LyToolBar getSubToolbar(LyTool tool)
Gets the sub toolbar (toolbar in tool's area)

Parameters:
tool -
Returns:

isSmallDashboard

public boolean isSmallDashboard(LyTool tool)

getToolTip

public java.lang.String getToolTip(java.lang.String label)
Gets the tooltip

Parameters:
label -
Returns:

setEnabled

public void setEnabled(boolean enabled)
(non-Javadoc)

Specified by:
setEnabled in interface LyGraphicalTool
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.
See Also:
LyGraphicalTool.setEnabled(boolean)

isLabelEmpty

public boolean isLabelEmpty(java.lang.String label)
Check if the given label is empty

Parameters:
label -
Returns:

setImage

public void setImage(java.lang.String image)
(non-Javadoc)

Specified by:
setImage in interface LyGraphicalTool
Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.
See Also:
LyGraphicalTool.setImage(java.lang.String)

setLabel

public void setLabel(java.lang.String label)
(non-Javadoc)

Specified by:
setLabel in interface LyGraphicalTool
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.
See Also:
LyGraphicalTool.setLabel(java.lang.String)

setPressed

public void setPressed(boolean pressed)
(non-Javadoc)

Specified by:
setPressed in interface LyGraphicalTool
Parameters:
pressed - Boolean indicating if attribute pressed is set or unset.
See Also:
LyGraphicalTool.setPressed(boolean)

setTooltip

public void setTooltip(java.lang.String tooltip)
(non-Javadoc)

Specified by:
setTooltip in interface LyGraphicalTool
Parameters:
tooltip - New value of tooltip.
See Also:
LyGraphicalTool.setTooltip(java.lang.String)

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)

getReloadScript

public java.lang.String getReloadScript()
(non-Javadoc)

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script
See Also:
LyJQInternalView.getReloadScript()

getImageFirstSize

public int getImageFirstSize()

getImageSecondSize

public int getImageSecondSize()

(c) January 2013 - W4 S.A.

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