UJO - public class KeyPopulator<UJO extends Ujo,T> extends Object implements org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<UJO>, org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<UJO,Key<UJO,T>>
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:
List<ICellPopulator> columns = KeyPopulator.list
( Employee.ID
, Employee.FIRSTNAME
, Employee.LASTNAME
, Employee.EMAIL
);
final WebMarkupContainer table = new WebMarkupContainer("table");
final DataGridView grid = new DataGridView("gridPanel", columns, new InnerPeopleProvicer());
table.setOutputMarkupId(true);
grid.setItemsPerPage(20);
add(table);
table.add(grid);
add(new AjaxPagingNavigator("tableNavigator", grid));
| Constructor and Description |
|---|
KeyPopulator(Key<UJO,?> property) |
KeyPopulator(KeyRing<UJO> property) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
org.apache.wicket.Component |
getHeader(String componentId) |
Key<UJO,T> |
getSortProperty() |
boolean |
isSortable() |
static <UJO extends Ujo> |
list(Key<? super UJO,?>... properties)
Create new ICellPopulator List with a pupulator with no generic item type for easy use
|
void |
populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<UJO>> cellItem,
String componentId,
org.apache.wicket.model.IModel<UJO> rowModel) |
static <UJO extends Ujo> |
safeList(Key<UJO,?>... properties)
Deprecated.
|
public void detach()
detach in interface org.apache.wicket.model.IDetachableIDetachable.detach()public void populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<UJO>> cellItem, String componentId, org.apache.wicket.model.IModel<UJO> rowModel)
public org.apache.wicket.Component getHeader(String componentId)
public boolean isSortable()
@Deprecated public static <UJO extends Ujo> List<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<UJO>> safeList(Key<UJO,?>... properties)
#list(java.lang.Class, org.ujorm.Key super UJO,?>[])Copyright © 2013. All Rights Reserved.