|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.extensions.markup.html.repeater.data.grid.PropertyPopulator
public class PropertyPopulator
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(java.lang.String property)
Constructor |
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
void |
populateItem(Item cellItem,
java.lang.String componentId,
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 |
Constructor Detail |
---|
public PropertyPopulator(java.lang.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 cellItem, java.lang.String componentId, IModel 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
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 |