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 |
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 |
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.
|
String |
getTitle()
Gets the text of the column header
|
int |
getWidth()
Gets the desired width of the column.
|
boolean |
isVisible() |
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 boolean isVisible()
public String getFormat()
IColumngetFormat in interface IColumnpublic String getFilterable()
IColumngetFilterable in interface IColumnpublic String getMenu()
IColumngetMenu in interface IColumnpublic List<String> getAggregates()
IColumngetAggregates in interface IColumnprotected String getAggregatesAsString()
public String getGroupHeaderTemplate()
IColumngetGroupHeaderTemplate in interface IColumnpublic String getGroupFooterTemplate()
IColumngetGroupFooterTemplate in interface IColumnCopyright © 2014 7thWeb. All Rights Reserved.