|
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.LyStrutsFormField
public class LyStrutsFormField
This class implements the Field object (as described in the dtd) for Struts viewer.
LyFormField
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
CAPTION_LENGTH_WRAP
Maximum length for not wrapped captions. |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsFormField(LyFormField field)
Class constructor of a Form Field object for the Struts target. |
Method Summary | |
---|---|
boolean |
compareToolbarComponents(LyComponent comp1,
LyComponent comp2)
Checks differences between components found in a toolbar (toolbars or tools). |
void |
initialize()
Initialization method. |
void |
refresh()
Refresh frame containing this web object. |
void |
refreshCaption()
Refreshes the content of the div containing the caption description. |
void |
refreshDivContent()
Refreshes the content of the div containing the item description. |
void |
resetContent()
Reset the view for a new XML Structure. |
void |
resetContent(boolean full)
Reset the view for a new XML Structure. |
void |
setChecked(boolean checked)
Updates attribute checked to the given value. |
void |
setEditable(boolean editable)
Updates attribute editable to the given value. |
void |
setEnabled(boolean enabled)
Updates attribute enabled to the given value. |
void |
setFocus()
Method used to set the focus. |
void |
setHidden(boolean hidden)
Updates attribute hidden to the given value. |
void |
setMessage(java.lang.String message)
Updates attribute message to the given value. |
void |
setOptional(boolean optional)
Updates attribute optional to the given value. |
void |
setParentCaptionTRId(java.lang.String parentCaptionTRId)
Sets the identifier of the parent TR containing the caption. |
void |
setParentTRId(java.lang.String parentTRId)
Sets the identifier of the parent TR containing the field. |
void |
setState(short state)
Updates attribute state to the given value. |
void |
setToolBar(LyToolBar toolBar)
Sets sub-component toolBar. |
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, 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 |
---|
public static final java.lang.String __VERSION
public static int CAPTION_LENGTH_WRAP
Constructor Detail |
---|
public LyStrutsFormField(LyFormField field)
field
- the generic Form Field defined for every type of view targetsMethod Detail |
---|
public void initialize()
null
.
public void refresh()
LyWebObject
refresh
in class LyWebObject
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic void setChecked(boolean checked)
LyGraphicalFormField
setChecked
in interface LyGraphicalFormField
checked
- Boolean indicating if attribute checked is set or unset.public void setHidden(boolean hidden)
LyGraphicalFormField
setHidden
in interface LyGraphicalFormField
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setParentTRId(java.lang.String parentTRId)
public void setParentCaptionTRId(java.lang.String parentCaptionTRId)
public void setToolBar(LyToolBar toolBar)
LyGraphicalFormField
setToolBar
in interface LyGraphicalFormField
toolBar
- New value of toolBarpublic void setOptional(boolean optional)
LyGraphicalFormField
setOptional
in interface LyGraphicalFormField
setOptional
in interface LySetOptionalInterface
optional
- Boolean indicating if attribute optional is set or unset.public void resetContent()
LyResetContentInterface
resetContent
in interface LyResetContentInterface
public void resetContent(boolean full)
LyResetContentInterface
resetContent
in interface LyResetContentInterface
full
- indicates whether old components must be removed from graphical view.public void setEditable(boolean editable)
LyGraphicalFormField
setEditable
in interface LyGraphicalFormField
setEditable
in interface LySetEditableInterface
editable
- Boolean indicating if attribute editable is set or unset.public void setEnabled(boolean enabled)
LyGraphicalFormField
setEnabled
in interface LyGraphicalFormField
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setFocus()
LySetFocusInterface
setFocus
in interface LySetFocusInterface
public void setState(short state)
LyGraphicalFormField
setState
in interface LyGraphicalFormField
setState
in interface LySetStateInterface
state
- New value of state.public void setMessage(java.lang.String message)
setMessage
in interface LyGraphicalFormField
message
- New value of message.public void refreshDivContent()
public void refreshCaption()
public boolean compareToolbarComponents(LyComponent comp1, LyComponent comp2)
comp1
- the first component of comparisoncomp2
- the second component of comparison
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |