|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.dc.core.objects.DCFieldDefinition
Definition of a field of a Data Crow Object. The label, length, value type, etc is described here
Constructor Summary | |
DCFieldDefinition(java.lang.String label,
boolean readonly,
int maximumLength,
int fieldType,
int valueType,
java.lang.String databaseFieldName)
Creates a new field definition. |
Method Summary | |
java.lang.String |
getDatabaseFieldName()
|
java.lang.String |
getDataBaseFieldType()
Determines and returns the database field type |
int |
getFieldType()
Returns the UI component type (@see ComponentFactory) |
java.lang.String |
getLabel()
Returns the display value |
int |
getMaximumLength()
Returns the maximum input length |
int |
getValueType()
Returns the input value type (@see Repository.datatypes) |
boolean |
isHidden()
Indicates whether this field is visible or not within the UI |
boolean |
isReadOnly()
|
boolean |
isRequired()
|
boolean |
isSearchable()
Defines whether a search can be performed on this field. |
void |
setDatabaseFieldName(java.lang.String s)
Sets the database column name (database mapping) |
void |
setFieldType(int index)
Sets the UI field type @see ComponentFactory |
void |
setHidden(boolean b)
Makes this field hidden (for UI purposes) |
void |
setLabel(java.lang.String s)
Sets the display value for this field |
void |
setMaximumLength(int i)
Sets the maximum input length |
void |
setReadOnly(boolean b)
Sets this field to uneditable |
void |
setRequired(boolean b)
Makes this field required |
void |
setValueType(int index)
Sets the input value type @see Repository.datatypes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DCFieldDefinition(java.lang.String label, boolean readonly, int maximumLength, int fieldType, int valueType, java.lang.String databaseFieldName)
label
- display valuereadonly
- writable or notmaximumLength
- maximum inout lengthfieldType
- UI component type (@see ComponentFactory)valueType
- input value type (@see Repository.datatypes)databaseFieldName
- database column nameMethod Detail |
public java.lang.String getDatabaseFieldName()
public int getFieldType()
public int getValueType()
public java.lang.String getLabel()
public boolean isHidden()
public boolean isRequired()
public boolean isReadOnly()
public boolean isSearchable()
public int getMaximumLength()
public void setLabel(java.lang.String s)
public void setReadOnly(boolean b)
b
- read only y/npublic void setRequired(boolean b)
b
- required y/npublic void setHidden(boolean b)
b
- hidden y/npublic void setMaximumLength(int i)
i
- maximum input lengthpublic void setFieldType(int index)
index
- Component type indexpublic void setValueType(int index)
index
- the value type indexpublic void setDatabaseFieldName(java.lang.String s)
s
- database field namepublic java.lang.String getDataBaseFieldType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |