wicket.extensions.markup.html.repeater.data.grid
Class PropertyPopulator
java.lang.Object
wicket.extensions.markup.html.repeater.data.grid.PropertyPopulator
- All Implemented Interfaces:
- ICellPopulator, java.io.Serializable
- public class PropertyPopulator
- extends java.lang.Object
- implements ICellPopulator
A convinience implementation of ICellPopulator that adds a label that
will display the value of the specified property. Non-string properties will
be converted to a string before display.
Example
ICellPopulator cityPopulator = new PropertyPopulator("address.city");
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
|
Method Summary |
void |
populateItem(Item cellItem,
java.lang.String componentId,
wicket.model.IModel rowModel)
Method used to populate a cell in the DataGridView
Implementation MUST add a component to the cellItem using the
component id provided by componentId argument, otherwise a
WicketRuntimeException will be thrown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyPopulator
public PropertyPopulator(java.lang.String property)
- Constructor
- Parameters:
property - property whose value will be displayed in the cell. uses
wicket's PropertyModel notation.
populateItem
public void populateItem(Item cellItem,
java.lang.String componentId,
wicket.model.IModel rowModel)
- Description copied from interface:
ICellPopulator
- Method used to populate a cell in the
DataGridView
Implementation MUST add a component to the cellItem using the
component id provided by componentId argument, otherwise a
WicketRuntimeException will be thrown
- Specified by:
populateItem in interface ICellPopulator
- Parameters:
cellItem - the item representing the current table cell being renderedcomponentId - the id of the component used to render the cell (only one
component should be added to the cell)rowModel - the model of the row item being rendered. this model usually
contains the model provided by the data provider.- See Also:
ICellPopulator.populateItem(wicket.extensions.markup.html.repeater.refreshing.Item,
java.lang.String, wicket.model.IModel)
Copyright © 2004-2008 Wicket developers. All Rights Reserved.