public interface ColumnConfiguration
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assembleColumnConfigForDataTables()
Assembles the javascript/datatables configurations for all the columns: this value will be used on the jsp page to
determine a number of setting for the datatables plugins.
|
java.lang.String |
assembleColumnConfigForDataTablesEditable()
Assembles the javascript/datatables configurations for all the columns: this value will be used on the jsp page to
determine a number of setting for the datatables editable plugins.
|
Column |
getColumn(java.lang.Integer columnPosition)
Returns the Column for the passed in position
|
Column |
getColumnByFieldName(java.lang.String fieldName) |
java.util.TreeMap<java.lang.Integer,Column> |
getColumnConfigMap()
Get the map of all column configurations for this table
|
int |
getColumnPositionByFieldLabel(java.lang.String fieldLabel,
boolean visibleOnly)
Returns the position of a column based on the field label.
|
int |
getColumnPositionByFieldName(java.lang.String fieldName,
boolean visibleOnly)
Returns the position of a column based on the field name.
|
java.lang.Object |
getColumnValue(java.lang.Integer columnPosition)
Returns the value for the column on the specified position
|
java.lang.String |
getJsonValuesForFormEdit()
Returns a json representation of all the values for one record, to be used in populating the form when editing a record
using the form instead of inline editing.
|
java.lang.String |
getLabelForFieldName(java.lang.String fieldName)
Gets the field label for passed in field name
|
void |
setColumn(java.lang.Integer columnPosition,
Column column)
Add column configuration for specified column position
|
void setColumn(java.lang.Integer columnPosition, Column column)
columnPosition
- the column position to set, column 0 must be the primary key of entitycolumn
- Column getColumn(java.lang.Integer columnPosition)
columnPosition
- the postion of the column in the datatablejava.lang.Object getColumnValue(java.lang.Integer columnPosition)
columnPosition
- the position of the column in the datatablejava.lang.String getLabelForFieldName(java.lang.String fieldName)
fieldName
- name of field to get the label forjava.util.TreeMap<java.lang.Integer,Column> getColumnConfigMap()
java.lang.String assembleColumnConfigForDataTables()
java.lang.String assembleColumnConfigForDataTablesEditable()
int getColumnPositionByFieldName(java.lang.String fieldName, boolean visibleOnly)
fieldName
- The fieldName of the columnvisibleOnly
- True if only visible column will be taken into consideration. False if all columns will be taken in
considerationint getColumnPositionByFieldLabel(java.lang.String fieldLabel, boolean visibleOnly)
fieldLabel
- The Label of the columnvisibleOnly
- True if only visible column will be taken into consideration. False if all columns will be taken in
considerationjava.lang.String getJsonValuesForFormEdit()
Column getColumnByFieldName(java.lang.String fieldName)