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 Column
public java.lang.String createColumnConfigForDataTablesEditable()
createColumnConfigForDataTablesEditable
in interface Column
public java.lang.String getFieldName()
Column
getFieldName
in interface Column
public void setFieldName(java.lang.String fieldName)
setFieldName
in interface Column
public java.lang.String getFieldLabel()
Column
getFieldLabel
in interface Column
public void setFieldLabel(java.lang.String fieldLabel)
setFieldLabel
in interface Column
public java.lang.Object getValue()
Column
public java.lang.String getDisplayValue()
Column
getDisplayValue
in interface Column
public void setDisplayValue(java.lang.String displayValue)
setDisplayValue
in interface Column
public java.lang.String getValueForDisplayOnEditForm()
Column
getValueForDisplayOnEditForm
in interface Column
public FieldType getFieldType()
Column
getFieldType
in interface Column
for the different type of fields avaiable
public void setFieldType(FieldType fieldType)
setFieldType
in interface Column
public Entity getEntity()
Column
public boolean isEditable()
Column
isEditable
in interface Column
public void setEditable(boolean editable)
setEditable
in interface Column
public boolean isVisible()
Column
public void setVisible(boolean visible)
setVisible
in interface Column
public boolean isSortable()
Column
isSortable
in interface Column
public void setSortable(boolean sortable)
setSortable
in interface Column
public java.lang.String createDataTablesColumnSetting()
public boolean isSearchable()
Column
isSearchable
in interface Column
public void setSearchable(boolean searchable)
setSearchable
in interface Column
public boolean getRequired()
Column
getRequired
in interface Column
public void setRequired(boolean required)
setRequired
in interface Column
public ShowOnForm getShowOnForm()
Column
getShowOnForm
in interface Column
public void setShowOnForm(ShowOnForm showOnForm)
setShowOnForm
in interface Column
public java.lang.String getUrl()
Column
public java.lang.String toString()
toString
in class java.lang.Object