public abstract class AbstractColumn extends java.lang.Object implements Column
| Constructor and Description |
|---|
AbstractColumn() |
AbstractColumn(java.lang.String fieldName,
java.lang.String fieldLabel,
java.lang.Object value,
java.lang.String displayValue,
FieldType fieldType,
Entity entity,
boolean editable,
boolean visible,
boolean sortable,
boolean searchable,
boolean required,
ShowOnForm showOnForm,
java.lang.String url) |
AbstractColumn(java.lang.String fieldName,
java.lang.String fieldLabel,
java.lang.Object value,
java.lang.String displayValue,
FieldType fieldType,
Entity entity,
boolean editable,
boolean visible,
boolean sortable,
boolean searchable,
boolean required,
ShowOnForm showOnForm,
java.lang.String url,
java.lang.String width) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createColumnConfigForDataTables()
Creates the configuration used in the javascript setup for dataTables.
|
java.lang.String |
createColumnConfigForDataTablesEditable()
This method creates the configuration used in the javascript setup for dataTables.editable().
|
java.lang.String |
createDataTablesColumnSetting() |
java.lang.String |
getDisplayValue()
Returns the display value for this column, the display value could be the same as the value or it could be a different
value
|
Entity |
getEntity()
Specifies if the column/value is part of the form backing entity
|
java.lang.String |
getFieldLabel()
Returns the field label to use for display purposes
|
java.lang.String |
getFieldName()
Returns the unique name of the field on the jpa entity
|
FieldType |
getFieldType()
Returns the type of field.
|
boolean |
getRequired()
Specifies if the column/values is required
|
ShowOnForm |
getShowOnForm()
Specifies if the column/value should be visible on the add new entity form
|
java.lang.String |
getUrl()
turn this value into a link using the url, also used to populate select values
|
java.lang.Object |
getValue()
Returns the actual value for this column
|
java.lang.String |
getValueForDisplayOnEditForm()
Returns the string representation of the value in a format that could be displayed on the edit form, such as taking date
format into account for Date and XmlGregorianCalendar
|
boolean |
isEditable()
Specifies if the column can be edited
|
boolean |
isSearchable()
Specifies if the column is searchable
|
boolean |
isSortable()
Specifies if the column can be sorted
|
boolean |
isVisible()
Specifies if the column is visible
|
void |
setDisplayValue(java.lang.String displayValue) |
void |
setEditable(boolean editable) |
void |
setEntity(Entity entity) |
void |
setFieldLabel(java.lang.String fieldLabel) |
void |
setFieldName(java.lang.String fieldName) |
void |
setFieldType(FieldType fieldType) |
void |
setRequired(boolean required) |
void |
setSearchable(boolean searchable) |
void |
setShowOnForm(ShowOnForm showOnForm) |
void |
setSortable(boolean sortable) |
void |
setUrl(java.lang.String url) |
void |
setValue(java.lang.Object value) |
void |
setVisible(boolean visible) |
java.lang.String |
toString() |
public AbstractColumn()
public AbstractColumn(java.lang.String fieldName,
java.lang.String fieldLabel,
java.lang.Object value,
java.lang.String displayValue,
FieldType fieldType,
Entity entity,
boolean editable,
boolean visible,
boolean sortable,
boolean searchable,
boolean required,
ShowOnForm showOnForm,
java.lang.String url)
public AbstractColumn(java.lang.String fieldName,
java.lang.String fieldLabel,
java.lang.Object value,
java.lang.String displayValue,
FieldType fieldType,
Entity entity,
boolean editable,
boolean visible,
boolean sortable,
boolean searchable,
boolean required,
ShowOnForm showOnForm,
java.lang.String url,
java.lang.String width)
public java.lang.String createColumnConfigForDataTables()
createColumnConfigForDataTables in interface Columnpublic java.lang.String createColumnConfigForDataTablesEditable()
createColumnConfigForDataTablesEditable in interface Columnpublic java.lang.String getFieldName()
ColumngetFieldName in interface Columnpublic void setFieldName(java.lang.String fieldName)
setFieldName in interface Columnpublic java.lang.String getFieldLabel()
ColumngetFieldLabel in interface Columnpublic void setFieldLabel(java.lang.String fieldLabel)
setFieldLabel in interface Columnpublic java.lang.Object getValue()
Columnpublic java.lang.String getDisplayValue()
ColumngetDisplayValue in interface Columnpublic void setDisplayValue(java.lang.String displayValue)
setDisplayValue in interface Columnpublic java.lang.String getValueForDisplayOnEditForm()
ColumngetValueForDisplayOnEditForm in interface Columnpublic FieldType getFieldType()
ColumngetFieldType in interface Columnfor the different type of fields avaiablepublic void setFieldType(FieldType fieldType)
setFieldType in interface Columnpublic Entity getEntity()
Columnpublic boolean isEditable()
ColumnisEditable in interface Columnpublic void setEditable(boolean editable)
setEditable in interface Columnpublic boolean isVisible()
Columnpublic void setVisible(boolean visible)
setVisible in interface Columnpublic boolean isSortable()
ColumnisSortable in interface Columnpublic void setSortable(boolean sortable)
setSortable in interface Columnpublic java.lang.String createDataTablesColumnSetting()
public boolean isSearchable()
ColumnisSearchable in interface Columnpublic void setSearchable(boolean searchable)
setSearchable in interface Columnpublic boolean getRequired()
ColumngetRequired in interface Columnpublic void setRequired(boolean required)
setRequired in interface Columnpublic ShowOnForm getShowOnForm()
ColumngetShowOnForm in interface Columnpublic void setShowOnForm(ShowOnForm showOnForm)
setShowOnForm in interface Columnpublic java.lang.String getUrl()
Columnpublic java.lang.String toString()
toString in class java.lang.Object