|
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
public abstract class LyFieldItem
This class implements the generic behavior of the following classes : LyText, LyNumber, LyDate, LyChoice, LyOption, LyRelation, LyFile, LyFont, LyColor, LyForm.
LyText
,
LyNumber
,
LyDate
,
LyChoice
,
LyOption
,
LyRelation
,
LyFile
,
LyForm
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.LyComponent |
---|
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID |
Constructor Summary | |
---|---|
LyFieldItem()
Default constructor. |
Method Summary | |
---|---|
void |
addBeanData(java.lang.String name,
java.lang.String value)
Deprecated. Use LyComponent.addData. |
LyViewComponent |
buildBean()
Builds bean instance for this field item corresponding to bean name. |
void |
free()
Free this field item. |
java.lang.String |
getBean()
Returns the name of the bean associated to this field item. |
LyFieldBeanInterface |
getBeanComponent()
Gets bean component. |
java.lang.String |
getBeanData(java.lang.String name)
Deprecated. Use LyComponent.getData. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getBeanDatas()
Deprecated. Use LyComponent.getDatas. |
LyComponent |
getChild(int i)
Returns child component of index i. |
int |
getChildCount()
Returns child component count. |
java.lang.String |
getErrorMessage()
Returns the error message associated to this field item. |
java.lang.Object |
getFieldValue()
Gets the field value presented in this field item. |
java.lang.String |
getValue()
Default accessor to the value. |
void |
setBean(java.lang.String bean)
Sets attribute bean to the given value. |
void |
setBeanComponent(LyFieldBeanInterface beanComponent)
Sets bean component. |
void |
setBeanDatas(java.util.Hashtable<java.lang.String,java.lang.String> datas)
Deprecated. Use LyComponent.setDatas. |
void |
setFieldValue(java.lang.Object value)
Sets the field value presented in this field item. |
void |
setLabel(java.lang.String label)
Sets attribute label to the given value. |
void |
updateViewContent()
Updates the content of the LyViewComponent from the graphical component This method is used to set the view component from a graphical component like a textfiel, which value may have changed in the graphical component. |
short |
validateInput()
Validate input done on this field item. |
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 LyFieldItem()
Method Detail |
---|
public void setLabel(java.lang.String label)
label
- new value of label.public void setBean(java.lang.String bean)
bean
- new value of bean.public void setBeanDatas(java.util.Hashtable<java.lang.String,java.lang.String> datas)
datas
- Datas of the bean.public java.lang.String getBeanData(java.lang.String name)
name
- Name of the data.
public void addBeanData(java.lang.String name, java.lang.String value)
name
- Name of the data.value
- Value of the data.public void setFieldValue(java.lang.Object value)
value
- field value.public java.lang.Object getFieldValue()
value
- field value.public java.lang.String getBean()
public java.util.Hashtable<java.lang.String,java.lang.String> getBeanDatas()
public LyFieldBeanInterface getBeanComponent()
public void setBeanComponent(LyFieldBeanInterface beanComponent)
beanComponent
- The bean component if this field item has one, null otherwise.public LyViewComponent buildBean()
public int getChildCount()
getChildCount
in class LyComponent
public LyComponent getChild(int i)
getChild
in class LyComponent
i
- index of component to get.
public java.lang.String getValue()
public short validateInput()
public java.lang.String getErrorMessage()
public void updateViewContent()
LyUpdateViewContentInterface
updateViewContent
in interface LyUpdateViewContentInterface
public void free()
free
in class LyComponent
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |