|
||||||||||
| 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| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor<T extends Component>, Component.VisibilityChange |
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
AbstractDataGridView(String id,
ICellPopulator<T>[] populators,
IDataProvider<T> dataProvider)
Constructor |
|
| Method Summary | |
|---|---|
protected 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)
|
protected Item<T> |
newRowItem(String id,
int index,
IModel<T> model)
Factory method for Item container that represents a row. |
protected void |
onDetach()
|
protected void |
populateItem(Item<T> item)
|
| 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, getItemCount, getItemModels, getPageCount, getRowCount, getViewOffset, getViewSize, internalGetRowsPerPage, internalSetRowsPerPage, onBeforeRender, setCurrentPage |
| 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 |
|---|
onRender, renderChild |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getMarkupType, getWebPage, getWebRequest |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, 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,
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 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)
newItem in class RefreshingView<T>
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()
onDetach in class DataViewBase<T>DataViewBase.onDetach()protected final void populateItem(Item<T> item)
populateItem in class RefreshingView<T>RefreshingView.populateItem(org.apache.wicket.markup.repeater.Item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||