public class PropertyColumn extends AbstractColumn implements IExportableColumn
DataTable
Constructor and Description |
---|
PropertyColumn(org.apache.wicket.model.IModel<String> title,
String property)
Constructor
|
PropertyColumn(org.apache.wicket.model.IModel<String> title,
String property,
int width)
Constructor
|
PropertyColumn(String title)
Constructor
|
PropertyColumn(String title,
int width)
Constructor
|
PropertyColumn(String title,
String property)
Constructor
|
PropertyColumn(String title,
String property,
int width)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getField()
Get the field in the data set that this column should be bound to.
|
Object |
getValue(Object object)
Gets the value of the supplied object.
Implementation may call getField() |
org.apache.wicket.model.IModel<Object> |
newDataModel(org.apache.wicket.model.IModel<?> rowModel)
Gets a new
IModel of the data represented by this IExportableColumn , for the supplied row model |
getAggregates, getAggregatesAsString, getEditor, getFilterable, getFooterTemplate, getFormat, getGroupFooterTemplate, getGroupHeaderTemplate, getMenu, getTemplate, getTitle, getType, getWidth, isEditable, isNullable, isVisible, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAggregates, getEditor, getFilterable, getFooterTemplate, getFormat, getGroupFooterTemplate, getGroupHeaderTemplate, getMenu, getTemplate, getTitle, getType, getWidth, isEditable, isNullable
public PropertyColumn(String title)
title
- the text of the column headerpublic PropertyColumn(String title, int width)
title
- the text of the column headerwidth
- the desired width of the columnpublic PropertyColumn(String title, String property)
title
- the text of the column headerproperty
- the object property namepublic PropertyColumn(String title, String property, int width)
title
- the text of the column headerproperty
- the object property namewidth
- the desired width of the columnpublic PropertyColumn(org.apache.wicket.model.IModel<String> title, String property)
title
- the text of the column headerproperty
- the object property namepublic String getField()
IColumn
getField
in interface IColumn
getField
in class AbstractColumn
public Object getValue(Object object)
getField()
object
- the model objectpublic org.apache.wicket.model.IModel<Object> newDataModel(org.apache.wicket.model.IModel<?> rowModel)
IExportableColumn
IModel
of the data represented by this IExportableColumn
, for the supplied row modelnewDataModel
in interface IExportableColumn
rowModel
- the row modelIModel
of the data represented by this IExportableColumn
Copyright © 2015 7thWeb. All rights reserved.