|
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.LyComponent
leon.view.LyFieldItem
leon.view.LyPanel
leon.view.LyFormFieldBase
public abstract class LyFormFieldBase
The LyFormFieldBase class is a generated Java implementation that corresponds to the element FIELD of the descriptive grammar of the views (views.dtd). <FIELD> : Field A field is contained in a form and allows to show or to input application data. It is principally made up of a label (optional) and an input field depending of the type of the data (text, number, date, color...). It is possible to associate a tool bar and a help entry to this field
LyPanel
,
See also tag FIELD of grammar leon_views.dtd.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.view.LyComponent |
---|
LyComponent.EventType |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static short |
STATE_ERROR
|
static short |
STATE_NORMAL
Possible values for attribute 'state'. |
static short |
STATE_WARNING
|
Fields inherited from class leon.view.LyComponent |
---|
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID |
Constructor Summary | |
---|---|
LyFormFieldBase(java.lang.String id)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
LyCaption |
getCaption()
Get sub-component Caption. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getController()
Gets value of controller. |
LyFieldItem |
getFieldItem()
Get sub-component FieldItem. |
LyFieldUnit |
getFieldUnit()
Get sub-component FieldUnit. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getMessage()
Gets value of message. |
LyRelation |
getRelation()
Get sub-component Relation. |
static short |
getshort(java.lang.String token)
Utility method to get state value from a string. |
short |
getState()
Gets value of state. |
LyFormField |
getTemplate()
Gets value of template. |
LyTip |
getTip()
Get sub-component Tip. |
LyToolBar |
getToolBar()
Get sub-component ToolBar. |
boolean |
isCheckBox()
Checks if value of attribute checkBox is set. |
boolean |
isChecked()
Checks if value of attribute checked is set. |
boolean |
isEditable()
Checks if value of attribute editable is set. |
boolean |
isEnabled()
Checks if value of attribute enabled is set. |
boolean |
isHidden()
Checks if value of attribute hidden is set. |
boolean |
isNeedCheck()
Checks if value of attribute needCheck is set. |
boolean |
isOptional()
Checks if value of attribute optional is set. |
boolean |
isValid()
Checks if value of attribute valid is set. |
void |
setCaption(LyCaption caption)
Sets sub-component caption. |
void |
setCheckBox(boolean checkBox)
Initializes attribute checkBox to the given value. |
void |
setChecked(boolean checked)
Sets attribute checked to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setController(java.lang.String controller)
Initializes attribute controller to the given value. |
void |
setEditable(boolean editable)
Sets attribute editable to the given value. |
void |
setEnabled(boolean enabled)
Sets attribute enabled to the given value. |
void |
setFieldItem(LyFieldItem fieldItem)
Sets sub-component fieldItem. |
void |
setFieldUnit(LyFieldUnit fieldUnit)
Sets sub-component fieldUnit. |
void |
setHidden(boolean hidden)
Sets attribute hidden to the given value. |
void |
setMessage(java.lang.String message)
Sets attribute message to the given value. |
void |
setNeedCheck(boolean needCheck)
Initializes attribute needCheck to the given value. |
void |
setOptional(boolean optional)
Sets attribute optional to the given value. |
void |
setRelation(LyRelation relation)
Sets sub-component relation. |
void |
setState(short state)
Sets attribute state to the given value. |
void |
setTemplate(LyFormField template)
Initializes attribute template to the given value. |
void |
setTip(LyTip tip)
Sets sub-component tip. |
void |
setToolBar(LyToolBar toolBar)
Sets sub-component toolBar. |
void |
setValid(boolean valid)
Initializes attribute valid to the given value. |
void |
writeXml(java.io.PrintWriter pw,
boolean debug)
Method to rewrite XML corresponding to this component. |
Methods inherited from class leon.view.LyPanel |
---|
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting |
Methods inherited from class leon.view.LyFieldItem |
---|
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final short STATE_NORMAL
public static final short STATE_ERROR
public static final short STATE_WARNING
Constructor Detail |
---|
public LyFormFieldBase(java.lang.String id)
id
- Identifier of the form.Method Detail |
---|
public static final short getshort(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyFormField getTemplate()
public boolean isEditable()
public boolean isOptional()
public boolean isEnabled()
public boolean isValid()
public boolean isCheckBox()
public boolean isChecked()
public boolean isNeedCheck()
public short getState()
public java.lang.String getMessage()
public boolean isHidden()
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public LyCaption getCaption()
public LyFieldItem getFieldItem()
public LyToolBar getToolBar()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public LyTip getTip()
public LyRelation getRelation()
public LyFieldUnit getFieldUnit()
public void setTemplate(LyFormField template)
template
- New value of template.public void setEditable(boolean editable)
setEditable
in interface LySetEditableInterface
editable
- Boolean indicating if attribute editable is set or unset.public void setOptional(boolean optional)
setOptional
in interface LySetOptionalInterface
optional
- Boolean indicating if attribute optional is set or unset.public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setValid(boolean valid)
valid
- Boolean indicating if attribute valid is set or unset.public void setCheckBox(boolean checkBox)
checkBox
- Boolean indicating if attribute checkBox is set or unset.public void setChecked(boolean checked)
checked
- Boolean indicating if attribute checked is set or unset.public void setNeedCheck(boolean needCheck)
needCheck
- Boolean indicating if attribute needCheck is set or unset.public void setState(short state)
setState
in interface LySetStateInterface
state
- New value of state.
java.lang.IllegalArgumentException
- if state parameter is null.public void setMessage(java.lang.String message)
message
- New value of message.public void setHidden(boolean hidden)
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setCaption(LyCaption caption)
caption
- New value of captionpublic void setFieldItem(LyFieldItem fieldItem)
fieldItem
- New value of fieldItempublic void setToolBar(LyToolBar toolBar)
toolBar
- New value of toolBarpublic void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic void setTip(LyTip tip)
tip
- New value of tippublic void setRelation(LyRelation relation)
relation
- New value of relationpublic void setFieldUnit(LyFieldUnit fieldUnit)
fieldUnit
- New value of fieldUnitpublic void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |