public abstract class AbstractColumn extends Object implements IColumn
IColumns implementation| Constructor and Description |
|---|
AbstractColumn(org.apache.wicket.model.IModel<String> title)
Constructor
|
AbstractColumn(org.apache.wicket.model.IModel<String> title,
int width)
Constructor
|
AbstractColumn(org.apache.wicket.model.IModel<String> title,
String field)
Constructor
|
AbstractColumn(org.apache.wicket.model.IModel<String> title,
String field,
int width)
Constructor
|
AbstractColumn(String title)
Constructor
|
AbstractColumn(String title,
int width)
Constructor
|
AbstractColumn(String title,
String field)
Constructor
|
AbstractColumn(String title,
String field,
int width)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAggregates()
The aggregate(s) which are calculated when the grid is grouped by the columns field.
|
protected String |
getAggregatesAsString()
Gets the list of
aggregates as json array |
String |
getAttributes()
HTML attributes of the table cell rendered for the column.
|
IKendoEditor |
getEditor()
Provides a way to specify a custom editing UI for the column.
|
String |
getField()
Get the field in the data set that this column should be bound to.
|
String |
getFilterable()
If set to true a filter menu will be displayed for this column when filtering is enabled.
If set to false the filter menu will not be displayed. By default a filter menu is displayed for all columns when filtering is enabled via the filterable option. |
String |
getFooterTemplate()
The template which renders the footer table cell for the column.
|
String |
getFormat()
The format that is applied to the value before it is displayed.
|
String |
getGroupFooterTemplate()
The template which renders the group footer when the grid is grouped by the column field.
|
String |
getGroupHeaderTemplate()
The template which renders the group header when the grid is grouped by the column field.
|
String |
getMenu()
If set to true the column will be visible in the grid column menu.
|
int |
getMinScreenWidth()
The pixel screen width below which the column will be hidden.
The setting takes precedence over the hidden setting, so the two should not be used at the same time. |
String |
getTemplate()
The template which renders the column content.
ie: return "<a href='?id=#:data.id#'>#:data.id#</a>"TODO: make it work for function(?) |
String |
getTitle()
Gets the text of the column header
|
String |
getType()
Get the field's type
Available options are "string", "number", "boolean", "date". |
int |
getWidth()
Gets the desired width of the column.
|
Boolean |
isEditable()
Indicates whether the model field and the column is editable
|
Boolean |
isEncoded()
If set to
true the column value will be HTML-encoded before it is displayed.If set to false the column value will be displayed as is.By default the column value is HTML-encoded. |
Boolean |
isNullable()
Indicates whether the model field is nullable
|
Boolean |
isPopupVisible()
Indicates whether the column/field is visible in popup-mode
Warning: the field should *still* be editable |
boolean |
isVisible()
Indicates whether the column is visible
|
String |
toString() |
public AbstractColumn(String title)
title - the text of the column headerpublic AbstractColumn(String title, int width)
title - the text of the column headerwidth - the desired width of the columnpublic AbstractColumn(String title, String field)
title - the text of the column headerfield - the object field namepublic AbstractColumn(String title, String field, int width)
title - the text of the column headerfield - the object field namewidth - the desired width of the columnpublic AbstractColumn(org.apache.wicket.model.IModel<String> title)
title - the text of the column headerpublic AbstractColumn(org.apache.wicket.model.IModel<String> title, int width)
title - the text of the column headerwidth - the desired width of the columnpublic AbstractColumn(org.apache.wicket.model.IModel<String> title, String field)
title - the text of the column headerfield - the object field namepublic String getTitle()
IColumnpublic String getField()
IColumnpublic int getWidth()
IColumnpublic int getMinScreenWidth()
IColumngetMinScreenWidth in interface IColumnpublic boolean isVisible()
true by defaultpublic Boolean isEncoded()
IColumntrue the column value will be HTML-encoded before it is displayed.false the column value will be displayed as is.public IKendoEditor getEditor()
IColumnpublic String getFormat()
IColumngetFormat in interface IColumnnull if it does not applypublic String getTemplate()
IColumnreturn "<a href='?id=#:data.id#'>#:data.id#</a>"getTemplate in interface IColumnnull if it does not applypublic String getAttributes()
IColumngetAttributes in interface IColumnpublic String getFooterTemplate()
IColumngetFooterTemplate in interface IColumnnull if it does not applypublic String getFilterable()
IColumngetFilterable in interface IColumnfilterable object; ie: true or { extra: false }public String getMenu()
IColumngetMenu in interface IColumnmenu object; ie: false or { extra: false }public List<String> getAggregates()
IColumngetAggregates in interface IColumnprotected final String getAggregatesAsString()
aggregates as json arrayaggregates as json arraypublic String getGroupHeaderTemplate()
IColumngetGroupHeaderTemplate in interface IColumnpublic String getGroupFooterTemplate()
IColumngetGroupFooterTemplate in interface IColumnpublic Boolean isEditable()
IColumnisEditable in interface IColumnnull by default, meaning not specifiedpublic Boolean isNullable()
IColumnisNullable in interface IColumnnull by default, meaning not specifiedpublic String getType()
IColumnpublic Boolean isPopupVisible()
isVisible() by default;Copyright © 2021 7thWeb. All rights reserved.