LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsRelation

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.LyStrutsRelation
All Implemented Interfaces:
LyGetValueInterface, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalRelation, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetLinksInterface, LyWebComponent

public class LyStrutsRelation
extends LyStrutsFieldItem
implements LyGraphicalRelation, LyGetValueInterface

This class implements the Relation object (as described in the dtd) for struts viewer.

RELATION: Input Field of Relation Type
An input field of Relation type allows to choose one or more values among a list of values. This list offers generally application objects belonging to a same class and is used to establish a relation between an object and one or more objects of this class. It is possible to specify if the relation is multiple or not.

See Also:
LyRelation

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
LyStrutsRelation(LyRelation relation)
          Class constructor of a Relation object for the struts target.
 
Method Summary
 void addLink(LyLink link, int pos)
          Inserts a sub-component links at given position.
 java.lang.String getRefreshContent(LyWebPageWriter pw)
           
 java.lang.String getValue()
          Return current component Value (LyGetValueInterface interface).
 void initialize()
          Initialization method.
 void removeLink(LyLink link)
          Removes a sub-component links.
 void setId(java.lang.String id)
          Sets id of this formField.
 void setNotify(boolean notify)
          Indicates if a modification of the relation must send an Ajax update.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
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, refresh, 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.LyGraphicalComponent
free, getViewComponent
 

Field Detail

__VERSION

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

LyStrutsRelation

public LyStrutsRelation(LyRelation relation)
Class constructor of a Relation object for the struts target.

Parameters:
relation - the generic Relation defined for every type of view targets.
Method Detail

initialize

public void initialize()
Initialization method.
Sets the relation height and buttons images and labels.


setNotify

public void setNotify(boolean notify)
Indicates if a modification of the relation must send an Ajax update.

Parameters:
notify - true if an Ajax update must be sent, false otherwise.

addLink

public void addLink(LyLink link,
                    int pos)
Description copied from interface: LyGraphicalRelation
Inserts a sub-component links at given position.

Specified by:
addLink in interface LyGraphicalRelation
Specified by:
addLink in interface LySetLinksInterface
Parameters:
link - The links to add to links list.
pos - Position where the sub-component is inserted.

removeLink

public void removeLink(LyLink link)
Description copied from interface: LyGraphicalRelation
Removes a sub-component links.

Specified by:
removeLink in interface LyGraphicalRelation
Specified by:
removeLink in interface LySetLinksInterface
Parameters:
link - The links to remove to links list.

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

getRefreshContent

public java.lang.String getRefreshContent(LyWebPageWriter pw)

setId

public void setId(java.lang.String id)
Sets id of this formField.

Parameters:
id - New id of the formField.

getValue

public java.lang.String getValue()
Description copied from interface: LyGetValueInterface
Return current component Value (LyGetValueInterface interface).

Specified by:
getValue in interface LyGetValueInterface

(c) January 2013 - W4 S.A.

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