Package com.groiss.dms
Interface FormField
public interface FormField
Interface for form fields.
FormType.fieldList(int...)
can be used to get a list of the fields of a form.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Non-database field.static final int
Database field.static final int
Field value.static final int
Subform table. -
Method Summary
Modifier and TypeMethodDescriptionFor database fields and field values the column name is returned.Returns the description of the field.getLabel()
Returns the label of the field.getSize()
Return the size of number and string fields.int
The position of the field in table view. -1 means the field is not shown in table view.int
getType()
Returns the type of the field.getValue()
Returns the value for field values, the subform-id for subform tables.Returns the defined type of the field, applicable for database fields.boolean
Returns true, if the field is a DATABASE_FIELD.
-
Field Details
-
DATABASE_FIELD
static final int DATABASE_FIELDDatabase field.- See Also:
-
FIELD_VALUE
static final int FIELD_VALUEField value.- See Also:
-
TABLE
static final int TABLESubform table.- See Also:
-
BLOCK
static final int BLOCKNon-database field.- See Also:
-
-
Method Details
-
getXmlType
String getXmlType()Returns the defined type of the field, applicable for database fields. -
getTabPos
int getTabPos()The position of the field in table view. -1 means the field is not shown in table view. -
getColumnName
String getColumnName()For database fields and field values the column name is returned. For non-database fields, this is the id of the field. For table fields, the classname of the subform is returned. -
getType
int getType()Returns the type of the field. One of DATABASE_FIELD,FIELD_VALUE,TABLE or BLOCK. Note, that in previous versions, several other values have been used. -
getLabel
String getLabel()Returns the label of the field. -
getSize
String getSize()Return the size of number and string fields. -
getValue
String getValue()Returns the value for field values, the subform-id for subform tables.- Returns:
-
isDbField
boolean isDbField()Returns true, if the field is a DATABASE_FIELD. -
getDescription
String getDescription()Returns the description of the field.
-