|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 org.apache.wicket.markup.repeater.AbstractPageableView org.apache.wicket.markup.repeater.data.DataViewBase org.apache.wicket.extensions.markup.html.repeater.data.grid.AbstractDataGridView
public abstract class AbstractDataGridView
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 FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
AbstractDataGridView(java.lang.String id,
ICellPopulator[] populators,
IDataProvider dataProvider)
Constructor |
Method Summary | |
---|---|
protected ICellPopulator[] |
internalGetPopulators()
|
protected Item |
newCellItem(java.lang.String id,
int index,
IModel model)
Factory method for Item container that represents a cell. |
protected Item |
newItem(java.lang.String id,
int index,
IModel model)
Factory method for Item container. |
protected Item |
newRowItem(java.lang.String id,
int index,
IModel 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 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, 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 |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, 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(java.lang.String id, ICellPopulator[] populators, IDataProvider dataProvider)
id
- component idpopulators
- array of ICellPopulator objects that will be used to populate cell itemsdataProvider
- data providerMethod Detail |
---|
protected final ICellPopulator[] internalGetPopulators()
protected Item newCellItem(java.lang.String id, int index, IModel 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 newItem(java.lang.String id, int index, IModel model)
RefreshingView
newItem
in class RefreshingView
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 newRowItem(java.lang.String id, int index, IModel 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
DataViewBase.onDetach()
protected final void populateItem(Item item)
RefreshingView
be 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
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 |