|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.repeater.AbstractRepeater
org.apache.wicket.markup.repeater.RepeatingView
org.apache.wicket.markup.repeater.RefreshingView<T>
org.apache.wicket.markup.repeater.AbstractPageableView<T>
org.apache.wicket.markup.repeater.data.DataViewBase<T>
org.apache.wicket.extensions.markup.html.repeater.data.grid.AbstractDataGridView<T>
T - Model object typepublic abstract class AbstractDataGridView<T>
Acts as a base for data-grid views. Unlike a data view a data-grid view populates both rows and columns. The columns are populated by an array of provided ICellPopulator objects.
DataGridView,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
AbstractDataGridView(String id,
List<? extends ICellPopulator<T>> populators,
IDataProvider<T> dataProvider)
Constructor |
|
| Method Summary | |
|---|---|
protected List<? extends ICellPopulator<T>> |
internalGetPopulators()
|
protected Item<ICellPopulator<T>> |
newCellItem(String id,
int index,
IModel<ICellPopulator<T>> model)
Factory method for Item container that represents a cell. |
protected Item<T> |
newItem(String id,
int index,
IModel<T> model)
Factory method for Item container. |
protected Item<T> |
newRowItem(String id,
int index,
IModel<T> model)
Factory method for Item container that represents a row. |
protected void |
onDetach()
Called to allow a component to detach resources after use. |
protected void |
populateItem(Item<T> item)
Populate the given Item container. |
| Methods inherited from class org.apache.wicket.markup.repeater.data.DataViewBase |
|---|
getItemModels, internalGetDataProvider, internalGetItemCount |
| Methods inherited from class org.apache.wicket.markup.repeater.AbstractPageableView |
|---|
getCurrentPage, getFirstItemOffset, getItemCount, getItemModels, getItemsPerPage, getPageCount, getRowCount, getViewSize, onBeforeRender, setCurrentPage, setItemsPerPage |
| Methods inherited from class org.apache.wicket.markup.repeater.RefreshingView |
|---|
addItems, getItemReuseStrategy, getItems, newItemFactory, onPopulate, setItemReuseStrategy |
| Methods inherited from class org.apache.wicket.markup.repeater.RepeatingView |
|---|
newChildId, renderIterator |
| Methods inherited from class org.apache.wicket.markup.repeater.AbstractRepeater |
|---|
getMarkup, onRender, renderChild |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataGridView(String id,
List<? extends ICellPopulator<T>> populators,
IDataProvider<T> dataProvider)
id - component idpopulators - array of ICellPopulator objects that will be used to populate cell itemsdataProvider - data provider| Method Detail |
|---|
protected final List<? extends ICellPopulator<T>> internalGetPopulators()
protected Item<ICellPopulator<T>> newCellItem(String id,
int index,
IModel<ICellPopulator<T>> model)
id - component id for the new data itemindex - the index of the new data itemmodel - the model for the new data item
Item,
RefreshingView.newItem(String, int, IModel)
protected final Item<T> newItem(String id,
int index,
IModel<T> model)
RefreshingView
newItem in class RefreshingView<T>id - component id for the new data itemindex - the index of the new data itemmodel - the model for the new data item
Item
protected Item<T> newRowItem(String id,
int index,
IModel<T> model)
id - component id for the new data itemindex - the index of the new data itemmodel - the model for the new data item.
Item,
RefreshingView.newItem(String, int, IModel)protected void onDetach()
Component
onDetach in class DataViewBase<T>DataViewBase.onDetach()protected final void populateItem(Item<T> item)
RefreshingViewbe carefull to add any components to the item and not the view itself. So, don't do:
add(new Label("foo", "bar"));
but:
item.add(new Label("foo", "bar"));
populateItem in class RefreshingView<T>item - The item to populateRefreshingView.populateItem(org.apache.wicket.markup.repeater.Item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||