LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsOption

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

public class LyStrutsOption
extends LyWebObject
implements LyGraphicalOption

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

OPTION: Option
An option represents a possible value in an input field of Choice type. It can be represented by a check box (case of a multiple choice) or else by a radio button (case of a simple choice).

See Also:
LyOption

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
LyStrutsOption(LyOption option)
          Class constructor of an Option object for the struts target.
 
Method Summary
 void setChecked(boolean checked)
          Updates attribute checked to the given value.
 void setEnabled(boolean enabled)
          Updates attribute enabled to the given value.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsOption

public LyStrutsOption(LyOption option)
Class constructor of an Option object for the struts target.

Parameters:
option - the generic Option defined for every type of view targets.
Method Detail

setChecked

public void setChecked(boolean checked)
Description copied from interface: LyGraphicalOption
Updates attribute checked to the given value.

Specified by:
setChecked in interface LyGraphicalOption
Parameters:
checked - Boolean indicating if attribute checked is set or unset.

writeHtml

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

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

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: LyGraphicalOption
Updates attribute enabled to the given value.

Specified by:
setEnabled in interface LyGraphicalOption
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.

(c) January 2013 - W4 S.A.

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