LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsHRef

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsFieldItem
              extended by leon.view.web.struts.LyStrutsHRef
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalHRef, LyViewComponent, LyFreeInterface, LySetImageInterface, LySetLabelInterface, LySetSensitiveInterface, LySetVisitedInterface, LyWebComponent

public class LyStrutsHRef
extends LyStrutsFieldItem
implements LyGraphicalHRef

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

HREF: Input Field of Hyperlink Type.
An input field of Hyperlink type allows to display a graphical component containing an hyperlink. This link allows to launch an action by a simple click. It does not contain any element.


Field Summary
static java.lang.String __VERSION
           
static java.lang.String LOCATION
          The location:// String value used within Path representation.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsHRef(LyHRef hRef)
          Constructor.
 
Method Summary
 void refresh()
          (non-Javadoc).
 void setImage(java.lang.String image)
          (non-Javadoc).
 void setSensitive(boolean sensitive)
          (non-Javadoc).
 void setVisited(boolean visited)
          (Modification) Accessor (LySetVisitedInterface interface).
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 void writeImage(LyWebPageWriter pw)
          Writes HTML description corresponding to the href image.
 void writeLabel(LyWebPageWriter pw)
          Writes HTML description corresponding to the href label.
 
Methods inherited from class leon.view.web.struts.LyStrutsFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getFormName, getHtmlForm, getId, isEditable, isNetscape, isOptional, needCheck, setLabel
 
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, 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.LyGraphicalHRef
setLabel
 
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

LOCATION

public static java.lang.String LOCATION
The location:// String value used within Path representation.

Constructor Detail

LyStrutsHRef

public LyStrutsHRef(LyHRef hRef)
Constructor.

Parameters:
hRef - the href component
Method Detail

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)

writeImage

public void writeImage(LyWebPageWriter pw)
Writes HTML description corresponding to the href image.

Parameters:
pw - the page writer

writeLabel

public void writeLabel(LyWebPageWriter pw)
Writes HTML description corresponding to the href label.

Parameters:
pw - the page writer

setImage

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

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

setSensitive

public void setSensitive(boolean sensitive)
(non-Javadoc).

Specified by:
setSensitive in interface LyGraphicalHRef
Specified by:
setSensitive in interface LySetSensitiveInterface
Parameters:
sensitive - Boolean indicating if attribute sensitive is set or unset.
See Also:
LySetSensitiveInterface.setSensitive(boolean)

setVisited

public void setVisited(boolean visited)
(Modification) Accessor (LySetVisitedInterface interface).

Specified by:
setVisited in interface LyGraphicalHRef
Specified by:
setVisited in interface LySetVisitedInterface
Parameters:
visited - Boolean indicating if attribute visited is set or unset.

refresh

public void refresh()
(non-Javadoc).

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

(c) January 2013 - W4 S.A.

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