|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.data.bean.BeanProperty
public class BeanProperty
BeanObject This class defines Metadata for a single property.
Field Summary | |
---|---|
protected BeanClass |
beanClass
|
Constructor Summary | |
---|---|
BeanProperty(java.lang.String name,
DataType dataType,
double size,
boolean required)
|
|
BeanProperty(java.lang.String name,
DataType dataType,
double size,
boolean required,
java.lang.String controlType,
boolean readOnly)
|
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of a column attribute. |
BeanClass |
getBeanClass()
returns the bean class of this property. |
java.lang.String |
getBeanPropertyName()
Gets the Java bean property name. |
java.lang.String |
getControlType()
Returns the columns control type. |
DataType |
getDataType()
Returns the data type of the bean property. |
java.lang.String |
getName()
Returns the name of the property. |
Options |
getOptions()
Returns the list of options for this column containing all allowed field values. |
double |
getSize()
Returns the maximum size a value for this column is allowed to have. |
Column |
getSourceColumn()
Returns the column This function should return the same string as getName() |
java.lang.String |
getTitle()
Returns the title attribute. |
boolean |
isReadOnly()
Returns true if the values for this column are generally read only (like i.e. |
boolean |
isRequired()
Returns whether or not the value for this column must be supplied (i.e. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setControlType(java.lang.String controlType)
|
void |
setOptions(Options options)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BeanClass beanClass
Constructor Detail |
---|
public BeanProperty(java.lang.String name, DataType dataType, double size, boolean required, java.lang.String controlType, boolean readOnly)
public BeanProperty(java.lang.String name, DataType dataType, double size, boolean required)
Method Detail |
---|
public java.lang.String getName()
getName
in interface ColumnExpr
public DataType getDataType()
getDataType
in interface ColumnExpr
DataType
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface ColumnExpr
name
- the attribute name
public java.lang.String getTitle()
getTitle
in interface ColumnExpr
public Options getOptions()
getOptions
in interface ColumnExpr
public java.lang.String getControlType()
getControlType
in interface ColumnExpr
public java.lang.String getBeanPropertyName()
getBeanPropertyName
in interface ColumnExpr
public Column getSourceColumn()
getSourceColumn
in interface ColumnExpr
public double getSize()
Column
For the data type DECIMAL the size defines the scale and precision of the value.
getSize
in interface Column
public boolean isReadOnly()
Column
isReadOnly
in interface Column
public boolean isRequired()
Column
isRequired
in interface Column
public BeanClass getBeanClass()
null
if BeanProperty is used 'stand alone'public void setControlType(java.lang.String controlType)
public void setOptions(Options options)
public void setTitle(java.lang.String title)
public void setAttribute(java.lang.String name, java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |