LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsSelectItem

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsSelectItem
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalSelectItem, LyViewComponent, LyFreeInterface, LySetEnabledInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LyWebComponent

public class LyStrutsSelectItem
extends LyWebObject
implements LyGraphicalSelectItem

This class implements the selectable item object (as described in the dtd) for web viewer.

SELECTITEM: Selection Item
A selection item allows pointing to a page of data that can be reached by simple selection.


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
LyStrutsSelectItem(LySelectItem selectItem)
          Constructor.
 
Method Summary
 java.lang.String buildPath()
          Build the path associated to this selectable item.
 void refresh()
          (non-Javadoc).
 void setEnabled(boolean enabled)
          (non-Javadoc).
 void setImage(java.lang.String image)
          (non-Javadoc).
 void setLabel(java.lang.String label)
          (non-Javadoc).
 void setSelected(boolean selected)
          (non-Javadoc).
 void setTooltip(java.lang.String tooltip)
          Updates attribute tooltip to the given value.
 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

LyStrutsSelectItem

public LyStrutsSelectItem(LySelectItem selectItem)
Constructor.

Parameters:
selectItem - the select item component
Method Detail

buildPath

public java.lang.String buildPath()
Build the path associated to this selectable item.
Method overriden to redirect to the Leonardi struts event handler.


refresh

public void refresh()
(non-Javadoc).

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

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)

setLabel

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

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

setTooltip

public void setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value.

Parameters:
tooltip - New value of tooltip.

setImage

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

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

setSelected

public void setSelected(boolean selected)
(non-Javadoc).

Specified by:
setSelected in interface LyGraphicalSelectItem
Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.
See Also:
LySetSelectedInterface.setSelected(boolean)

setEnabled

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

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

(c) January 2013 - W4 S.A.

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