|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.extensions.markup.html.repeater.data.grid.PropertyPopulator<T>
T
- public class PropertyPopulator<T>
A convenience 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");
Constructor Summary | |
---|---|
PropertyPopulator(String property)
Constructor |
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
void |
populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> 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 |
Constructor Detail |
---|
public PropertyPopulator(String property)
property
- property whose value will be displayed in the cell. uses wicket's
PropertyModel
notation.Method Detail |
---|
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
public void populateItem(Item<ICellPopulator<T>> cellItem, String componentId, IModel<T> rowModel)
ICellPopulator
DataGridView
Implementation MUST add a component to the cellItem using the component id provided by
componentId argument, otherwise a WicketRuntimeException will be thrown
populateItem
in interface ICellPopulator<T>
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.ICellPopulator.populateItem(org.apache.wicket.markup.repeater.Item,
java.lang.String, org.apache.wicket.model.IModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |