LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.fieldItem
Class LyJQFieldItem

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.fieldItem.LyJQFieldItem
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyViewComponent, LyFreeInterface, LySetLabelInterface, LyWebComponent
Direct Known Subclasses:
LyJQBoolean, LyJQChoice, LyJQDate, LyJQDictionary, LyJQFile, LyJQHRef, LyJQHRefs, LyJQLabel, LyJQList, LyJQNumber, LyJQPanel, LyJQRelation, LyJQText

public class LyJQFieldItem
extends LyJQInternalView
implements LyGraphicalFieldItem, LySetLabelInterface

LyField Jquery internal view


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
LyJQFieldItem(LyFieldItem fieldItem)
          Class constructor of a Field Item object for the struts target.
 
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 getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 java.lang.String getTarget()
          Gets target string
 boolean isEditable()
          Indicates if the field item is editable.
 boolean isEnabled()
           
 boolean isLabelInstance(LyFieldItem fieldItem)
           
 boolean isMail(java.lang.String label)
          Check if text is a mail
 boolean isNetscape()
          Indicates if the Web browser used is Netscape.
 boolean isOptional()
          Indicates if the field item is optional.
 boolean isPrintMode()
          Check if text is in a print mode
 boolean isUrl(java.lang.String label)
          Check if text is an url
 boolean isUrlRecurse(java.lang.String label)
          Check if text is an url recurse
 boolean needCheck()
          Indicates if the field item needs check.
 void setLabel(java.lang.String label)
          Sets the label of the component.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
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

LyJQFieldItem

public LyJQFieldItem(LyFieldItem fieldItem)
Class constructor of a Field Item object for the struts target.

Parameters:
fieldItem - the generic Field Item defined for every type of view targets
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

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

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

isLabelInstance

public boolean isLabelInstance(LyFieldItem fieldItem)

isMail

public boolean isMail(java.lang.String label)
Check if text is a mail

Parameters:
label -
Returns:

isUrlRecurse

public boolean isUrlRecurse(java.lang.String label)
Check if text is an url recurse

Parameters:
label -
Returns:

isUrl

public boolean isUrl(java.lang.String label)
Check if text is an url

Parameters:
label -
Returns:

isPrintMode

public boolean isPrintMode()
Check if text is in a print mode

Parameters:
text -
Returns:

getTarget

public java.lang.String getTarget()
Gets target string

Returns:

canDisabled

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

Returns:
true if it can, false otherwise

isNetscape

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

Returns:
true if it is Netscape, 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)
Description copied from interface: LySetLabelInterface
Sets the label of the component.

Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - new label

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

getReloadScript

public java.lang.String getReloadScript()
Description copied from class: LyJQInternalView
this method is to be implemented by internal views to get the reload script for the page element

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script

isEnabled

public boolean isEnabled()

(c) January 2013 - W4 S.A.

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