|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsRelation
public class LyStrutsRelation
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.
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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrutsRelation(LyRelation relation)
relation
- the generic Relation defined for every type of view targets.Method Detail |
---|
public void initialize()
public void setNotify(boolean notify)
notify
- true if an Ajax update must be sent, false otherwise.public void addLink(LyLink link, int pos)
LyGraphicalRelation
addLink
in interface LyGraphicalRelation
addLink
in interface LySetLinksInterface
link
- The links to add to links list.pos
- Position where the sub-component is inserted.public void removeLink(LyLink link)
LyGraphicalRelation
removeLink
in interface LyGraphicalRelation
removeLink
in interface LySetLinksInterface
link
- The links to remove to links list.public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic java.lang.String getRefreshContent(LyWebPageWriter pw)
public void setId(java.lang.String id)
id
- New id of the formField.public java.lang.String getValue()
LyGetValueInterface
getValue
in interface LyGetValueInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |