LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.misc
Class LyFieldBean

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.misc.LyFieldBean
All Implemented Interfaces:
java.lang.Cloneable

public class LyFieldBean
extends LyTag

This class defines a field bean : Graphical object used for interacting with a field in some circumstances (consultation, edition, filtering).


Nested Class Summary
static class LyFieldBean.Type
          Bean types.
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyFieldBean(java.lang.String javaName)
          Constructor of a field bean.
LyFieldBean(java.lang.String javaName, LyFieldBean.Type actionType)
          Constructor of a field bean.
 
Method Summary
 LyFieldBean.Type getActionType()
          Gets type of action where the bean is used.
 java.lang.String getData(java.lang.String name)
          Gets a user data by its name.
 java.util.Vector<LyData> getDataList()
          Gets list of data associated to this instance.
 java.util.Hashtable<java.lang.String,java.lang.String> getDatas()
          Gets table of datas associated to this instance.
 java.lang.String getJavaName()
          Gets java name of the field bean.
 java.lang.String putData(java.lang.String name, java.lang.String value)
          Adds user data on this instance.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFieldBean

public LyFieldBean(java.lang.String javaName)
Constructor of a field bean.

Parameters:
javaName - Java name of the field bean.

LyFieldBean

public LyFieldBean(java.lang.String javaName,
                   LyFieldBean.Type actionType)
Constructor of a field bean.

Parameters:
javaName - Java name of the field bean.
actionId - Type of action where the bean is used.
Method Detail

getJavaName

public final java.lang.String getJavaName()
Gets java name of the field bean.


getActionType

public final LyFieldBean.Type getActionType()
Gets type of action where the bean is used.


getData

public final java.lang.String getData(java.lang.String name)
Gets a user data by its name.

Parameters:
name - Name for which a value is searched.
Returns:
Found value if any, or null if no data was stored with the given name.
Throws:
java.lang.IllegalArgumentException - If the given name is null.

getDatas

public final java.util.Hashtable<java.lang.String,java.lang.String> getDatas()
Gets table of datas associated to this instance.

Returns:
Returns the table of all the datas associated to this object info. This is a copy of the internal hashtable that contains these datas.

getDataList

public final java.util.Vector<LyData> getDataList()
Gets list of data associated to this instance.

Returns:
Returns the list of all the data associated to this object info.

putData

public final java.lang.String putData(java.lang.String name,
                                      java.lang.String value)
Adds user data on this instance. A user data is a value associated to a name stored in a hashtable.

Parameters:
name - Name of the user data. If a value was already stored for that name, this value is overriden.
value - Value of the user data.
Returns:
The previous value associated to the given name if there was one, null otherwise.
Throws:
java.lang.IllegalArgumentException - If the given name or value is null.

(c) January 2013 - W4 S.A.

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