LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.mobile
Class LyMobileFormField

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.mobile.LyMobileObject
          extended by leon.view.mobile.LyMobileTableObject
              extended by leon.view.mobile.LyMobileFormField
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalFormField, LyGraphicalPanel, LyViewComponent, LyMobileComponent, LyFreeInterface, LySetEditableInterface, LySetEnabledInterface, LySetHiddenInterface, LySetOptionalInterface, LySetStateInterface

public class LyMobileFormField
extends LyMobileTableObject
implements LyGraphicalFormField


Field Summary
static short STATE_ERROR
           
static short STATE_NORMAL
          Possible values for attribute 'state'.
static short STATE_WARNING
           
 
Fields inherited from class leon.view.mobile.LyMobileObject
REWRITING_MODE, SEP_ID, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from class leon.view.graphic.LyGraphicalObject
__VERSION
 
Fields inherited from interface leon.view.graphic.LyGraphicalFormField
__VERSION
 
Constructor Summary
LyMobileFormField(LyFormField field)
           
 
Method Summary
 void init()
           
 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 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 setState(short state)
          Updates attribute state to the given value.
 void setToolBar(LyToolBar toolBar)
          Sets sub-component toolBar.
 void writeJson(java.io.PrintWriter pw, java.lang.String sessionId)
           
 void writeXml(java.io.PrintWriter pw)
          Write XML description corresponding to this component.
 int writeXml(java.io.PrintWriter pw, int nb)
           
 
Methods inherited from class leon.view.mobile.LyMobileObject
createWebview, expandUrl, getDirForDownloadImage, getImageUrl, getUrl, printJsonAttributeSeparator
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, free, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, 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

STATE_NORMAL

public static final short STATE_NORMAL
Possible values for attribute 'state'.

See Also:
Constant Field Values

STATE_ERROR

public static final short STATE_ERROR
See Also:
Constant Field Values

STATE_WARNING

public static final short STATE_WARNING
See Also:
Constant Field Values
Constructor Detail

LyMobileFormField

public LyMobileFormField(LyFormField field)
Method Detail

writeXml

public void writeXml(java.io.PrintWriter pw)
Description copied from interface: LyMobileComponent
Write XML description corresponding to this component.

Specified by:
writeXml in interface LyMobileComponent
Overrides:
writeXml in class LyMobileTableObject
Parameters:
pw - the print writer

writeJson

public void writeJson(java.io.PrintWriter pw,
                      java.lang.String sessionId)
Specified by:
writeJson in interface LyMobileComponent

init

public void init()
Specified by:
init in interface LyMobileComponent
Overrides:
init in class LyMobileTableObject

setEditable

public void setEditable(boolean editable)
Description copied from interface: LyGraphicalFormField
Updates attribute editable to the given value.

Specified by:
setEditable in interface LyGraphicalFormField
Specified by:
setEditable in interface LySetEditableInterface
Parameters:
editable - Boolean indicating if attribute editable is set or unset.

setOptional

public void setOptional(boolean optional)
Description copied from interface: LyGraphicalFormField
Updates attribute optional to the given value.

Specified by:
setOptional in interface LyGraphicalFormField
Specified by:
setOptional in interface LySetOptionalInterface
Parameters:
optional - Boolean indicating if attribute optional is set or unset.

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: LyGraphicalFormField
Updates attribute enabled to the given value.

Specified by:
setEnabled in interface LyGraphicalFormField
Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.

setChecked

public void setChecked(boolean checked)
Description copied from interface: LyGraphicalFormField
Updates attribute checked to the given value.

Specified by:
setChecked in interface LyGraphicalFormField
Parameters:
checked - Boolean indicating if attribute checked is set or unset.

setState

public void setState(short state)
Description copied from interface: LyGraphicalFormField
Updates attribute state to the given value.

Specified by:
setState in interface LyGraphicalFormField
Specified by:
setState in interface LySetStateInterface
Parameters:
state - New value of state.

setMessage

public void setMessage(java.lang.String message)
Description copied from interface: LyGraphicalFormField
Updates attribute message to the given value.

Specified by:
setMessage in interface LyGraphicalFormField
Parameters:
message - New value of message.

setHidden

public void setHidden(boolean hidden)
Description copied from interface: LyGraphicalFormField
Updates attribute hidden to the given value.

Specified by:
setHidden in interface LyGraphicalFormField
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.

setToolBar

public void setToolBar(LyToolBar toolBar)
Description copied from interface: LyGraphicalFormField
Sets sub-component toolBar.

Specified by:
setToolBar in interface LyGraphicalFormField
Parameters:
toolBar - New value of toolBar

writeXml

public int writeXml(java.io.PrintWriter pw,
                    int nb)
Specified by:
writeXml in class LyMobileTableObject

(c) January 2013 - W4 S.A.

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