LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsFieldItem

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsFieldItem
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyViewComponent, LyFreeInterface, LySetLabelInterface, LyWebComponent
Direct Known Subclasses:
LyStrutsBoolean, LyStrutsChoice, LyStrutsDate, LyStrutsFile, LyStrutsHRef, LyStrutsHRefs, LyStrutsIcon, LyStrutsLabel, LyStrutsList, LyStrutsNumber, LyStrutsPanel, LyStrutsRelation, LyStrutsText

public abstract class LyStrutsFieldItem
extends LyWebObject
implements LyGraphicalFieldItem, LySetLabelInterface

This class implements the common behavior for field items objects for the HTML viewer.

Fields items are implemented in Struts by those classes : LyStrutsText, LyStrutsNumber, LyStrutsDate, LyStrutsChoice, LyStrutsOption, LyStrutsRelation, LyStrutsFile, LyStrutsForm.

See Also:
LyStrutsText, LyStrutsNumber, LyStrutsDate, LyStrutsChoice, LyStrutsOption, LyStrutsRelation, LyStrutsFile, LyStrutsForm, LyFieldItem

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Method Summary
 boolean canDisabled()
          Indicates if the Web browser can disabled its elements.
 java.lang.String getCaption()
          Gets the caption of the parent form field.
 java.lang.String getController()
          (non-Javadoc).
 LyFieldItem getFieldItem()
          Gets the field item.
 LyForm getForm()
          Gets the form ancestor.
 LyFormField getFormField()
          Gets the form field that contains this item.
 java.lang.String getFormName(LyWebPageWriter pw)
          Gets the ancestor form name.
 LyStrutsForm getHtmlForm()
          Gets the Struts form.
 java.lang.String getId()
          Gets the id of the form field that contains this item.
 boolean isEditable()
          Indicates if the field item is editable.
 boolean isNetscape()
          Indicates if the Web browser used is Netscape.
 boolean isOptional()
          Indicates if the field item is optional.
 boolean needCheck()
          Indicates if the field item needs check.
 void setLabel(java.lang.String label)
          (non-Javadoc).
 
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
 
Methods inherited from interface leon.view.web.LyWebComponent
writeHtml
 

Field Detail

__VERSION

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

getFieldItem

public LyFieldItem getFieldItem()
Gets the field item.

Returns:
the field item

getFormField

public LyFormField getFormField()
Gets the form field that contains this item.

Returns:
the form field

getId

public java.lang.String getId()
Gets the id of the form field that contains this item.

Returns:
the id

getController

public java.lang.String getController()
(non-Javadoc).

Overrides:
getController in class LyGraphicalObject
Returns:
The controller id of this component, may be null.
See Also:
LyGraphicalObject.getController()

getCaption

public java.lang.String getCaption()
Gets the caption of the parent form field.

Returns:
the caption

getForm

public LyForm getForm()
Gets the form ancestor.

Returns:
the form ancestor

getHtmlForm

public LyStrutsForm getHtmlForm()
Gets the Struts form.

Returns:
the web form that contains this item

getFormName

public java.lang.String getFormName(LyWebPageWriter pw)
Gets the ancestor form name.

Parameters:
pw - the page writer
Returns:
the form name if found, the String "default" otherwise

isNetscape

public boolean isNetscape()
Indicates if the Web browser used is Netscape.

Returns:
true if it is Netscape, false otherwise

canDisabled

public boolean canDisabled()
Indicates if the Web browser can disabled its elements.

Returns:
true if it can, false otherwise

isEditable

public boolean isEditable()
Indicates if the field item is editable.

Returns:
true if it is editable, false otherwise

isOptional

public boolean isOptional()
Indicates if the field item is optional.

Returns:
true if it is optional, false otherwise

needCheck

public boolean needCheck()
Indicates if the field item needs check.

Returns:
true if it needs check, false otherwise

setLabel

public void setLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - new label
See Also:
LySetLabelInterface.setLabel(java.lang.String)

(c) January 2013 - W4 S.A.

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