|
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
leon.view.LyFormField
public class LyFormField
The LyFormField class implements generic behavior for the FIELD components as described in views.dtd regardless of the requested target (win, swing, html...). It represents a form field.
LyComponent
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.view.LyComponent |
---|
LyComponent.EventType |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.LyFormFieldBase |
---|
STATE_ERROR, STATE_NORMAL, STATE_WARNING |
Fields inherited from class leon.view.LyComponent |
---|
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID |
Constructor Summary | |
---|---|
LyFormField(java.lang.String id)
Constructor with all required attributes. |
Method Summary | |
---|---|
void |
free()
Free this component. |
int[] |
getBounds(LyComponent parentComponent)
Returns the position and size of current component relatively to given component. |
boolean |
isValid()
Deprecated. Use getState method |
void |
resetContent()
Reset content of this form field. |
void |
setFocus()
To give the focus to this formField. |
void |
setId(java.lang.String id)
Sets id of this formField. |
void |
setState(short state)
Sets attribute state to the given value. |
void |
setValid(boolean valid)
Deprecated. Use setState method |
void |
setVisible(boolean status)
Shows or hides the component/node. |
Methods inherited from class leon.view.LyFormFieldBase |
---|
cloneComponent, getCaption, getConstraint, getController, getFieldItem, getFieldUnit, getId, getMessage, getRelation, getshort, getState, getTemplate, getTip, getToolBar, isCheckBox, isChecked, isEditable, isEnabled, isHidden, isNeedCheck, isOptional, setCaption, setCheckBox, setChecked, setConstraint, setController, setEditable, setEnabled, setFieldItem, setFieldUnit, setHidden, setMessage, setNeedCheck, setOptional, setRelation, setTemplate, setTip, setToolBar, writeXml |
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, 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 LyFormField(java.lang.String id)
Method Detail |
---|
public boolean isValid()
isValid
in class LyFormFieldBase
public void setValid(boolean valid)
setValid
in class LyFormFieldBase
valid
- Boolean indicating if attribute valid is set or unset.public void setState(short state)
setState
in interface LySetStateInterface
setState
in class LyFormFieldBase
state
- New value of STATE_
java.lang.IllegalArgumentException
- if state is not a known value for this attribute.public void resetContent()
public void setId(java.lang.String id)
id
- New id of the formField.public void setFocus()
public void setVisible(boolean status)
LyComponent
setVisible
in class LyComponent
status
- new visibility statusLySetVisibleInterface.setVisible(boolean)
public int[] getBounds(LyComponent parentComponent)
getBounds
in class LyComponent
parentComponent
- the component used to compute relative position of current
component. If null, position of current component is computed with
the top-left corner of the screen as the origin.
public void free()
free
in class LyFieldItem
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |