|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.wicket.component.grid.KeyPopulator<UJO,T>
UJO - public class KeyPopulator<UJO extends Ujo,T>
A convenience implementation of ICellPopulator that adds a label that will display the
value of the specified key. 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 Summary | |
|---|---|
KeyPopulator(Key<UJO,?> key)
|
|
KeyPopulator(KeyRing<UJO> key)
|
|
| Method Summary | ||
|---|---|---|
void |
detach()
|
|
org.apache.wicket.Component |
getHeader(String componentId)
|
|
Key<UJO,T> |
getSortProperty()
|
|
boolean |
isSortable()
|
|
static
|
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
|
safeList(Key<UJO,?>... properties)
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyPopulator(KeyRing<UJO> key)
public KeyPopulator(Key<UJO,?> key)
| Method Detail |
|---|
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)
populateItem in interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<UJO extends Ujo>ICellPopulator.populateItem(org.apache.wicket.markup.repeater.Item,
java.lang.String, org.apache.wicket.model.IModel)public org.apache.wicket.Component getHeader(String componentId)
getHeader in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<UJO extends Ujo,Key<UJO extends Ujo,T>>public Key<UJO,T> getSortProperty()
getSortProperty in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<UJO extends Ujo,Key<UJO extends Ujo,T>>public boolean isSortable()
isSortable in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<UJO extends Ujo,Key<UJO extends Ujo,T>>@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,?>[])public static <UJO extends Ujo> List<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator> list(Key<? super UJO,?>... properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||