|
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.LyFormBase
public abstract class LyFormBase
The LyFormBase class is a generated Java implementation that corresponds to the element FORM of the descriptive grammar of the views (views.dtd). <FORM> : Form A form allows showing a set of fields. This type of component is used to allow an application user to consult application data (non editable form) or else to input data (editable form). The default arrangement of the fields inside a form is based on a grid of two columns comprising as many lines as there are fields. The first column contains the labels of the fields and the second one contains the input fields.
LyPanel
,
See also tag FORM of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyFormBase.Align
Possible values for attribute 'align'. |
Nested classes/interfaces inherited from class leon.view.LyComponent |
---|
LyComponent.EventType |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.LyComponent |
---|
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID |
Constructor Summary | |
---|---|
LyFormBase(java.lang.String id)
Constructor with all required attributes. |
Method Summary | |
---|---|
void |
addFormField(LyFormField formField)
Adds a sub-component formField. |
LyComponent |
cloneComponent()
Method for cloning a component. |
LyFormBase.Align |
getAlign()
Gets value of align. |
static LyFormBase.Align |
getAlign(java.lang.String token)
Utility method to get align value from a string. |
java.lang.String |
getColor()
Gets value of color. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
java.lang.String |
getController()
Gets value of controller. |
java.lang.String |
getErrorColor()
Gets value of errorColor. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
LyFormField |
getFormField(int i)
Get sub-component FormField of index i. |
int |
getFormFieldCount()
Get sub-component FormField count. |
java.lang.String |
getId()
Gets value of id. |
LyForm |
getTemplate()
Gets value of template. |
java.lang.String |
getWarningColor()
Gets value of warningColor. |
void |
insertFormField(LyFormField formField,
int pos)
Inserts a sub-component formField at given position. |
boolean |
isBorder()
Checks if value of attribute border is set. |
boolean |
isDefaultColor()
Checks whether the color attribute is valuated to the default value. |
boolean |
isDefaultErrorColor()
Checks whether the errorColor attribute is valuated to the default value. |
boolean |
isDefaultFont()
Checks whether the font attribute is valuated to the default value. |
boolean |
isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value. |
boolean |
isDefaultWarningColor()
Checks whether the warningColor attribute is valuated to the default value. |
boolean |
isEditable()
Checks if value of attribute editable is set. |
void |
setAlign(LyFormBase.Align align)
Initializes attribute align to the given value. |
void |
setBorder(boolean border)
Initializes attribute border to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color 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 |
setErrorColor(java.lang.String errorColor)
Initializes attribute errorColor to the given value. |
void |
setFont(java.lang.String font)
Initializes attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setTemplate(LyForm template)
Initializes attribute template to the given value. |
void |
setWarningColor(java.lang.String warningColor)
Initializes attribute warningColor 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
Constructor Detail |
---|
public LyFormBase(java.lang.String id)
id
- Identifier of the form.Method Detail |
---|
public static final LyFormBase.Align getAlign(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 LyForm getTemplate()
public boolean isEditable()
public LyFormBase.Align getAlign()
public java.lang.String getController()
getController
in interface LyGetControllerInterface
public boolean isBorder()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public java.lang.String getWarningColor()
public boolean isDefaultWarningColor()
public java.lang.String getErrorColor()
public boolean isDefaultErrorColor()
public LyFormField getFormField(int i)
i
- the index of the FormField to get.
public int getFormFieldCount()
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setTemplate(LyForm 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 setAlign(LyFormBase.Align align)
align
- New value of align.
java.lang.IllegalArgumentException
- if align parameter is null.public void setController(java.lang.String controller)
setController
in interface LySetControllerInterface
controller
- New value of controller.LySetControllerInterface.setController(java.lang.String)
public void setBorder(boolean border)
border
- Boolean indicating if attribute border is set or unset.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setWarningColor(java.lang.String warningColor)
warningColor
- New value of warningColor.public void setErrorColor(java.lang.String errorColor)
errorColor
- New value of errorColor.public void addFormField(LyFormField formField)
formField
- The formField to add to formFields list.public void insertFormField(LyFormField formField, int pos)
formField
- The formField to add to formFields list.pos
- Position where the sub-component is inserted.public void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic 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 |