|
||||||||||
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
public abstract class AbstractRepeater
Base class for repeaters. This container renders each of its children using its own markup.
The children are collected using renderIterator()
method. This class will take care of
properly positioning and rewinding its markup stream so before each child renders it points to
the beginning of this component. Each child is rendered by a call to
renderChild(Component)
. A typical implementation simply does
child.render(getMarkupStream());
.
Nested 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 | |
---|---|
AbstractRepeater(java.lang.String id)
Constructor |
|
AbstractRepeater(java.lang.String id,
IModel model)
Constructor |
Method Summary | |
---|---|
protected void |
onBeforeRender()
Called just before a component is rendered. |
protected abstract void |
onPopulate()
Callback to let the repeater know it should populate itself with its items. |
protected void |
onRender(MarkupStream markupStream)
Renders all child items in no specified order |
protected void |
renderChild(Component child)
Render a single child. |
protected abstract java.util.Iterator |
renderIterator()
Returns an iterator for the collection of child components to be rendered. |
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 AbstractRepeater(java.lang.String id)
id
- public AbstractRepeater(java.lang.String id, IModel model)
id
- model
- Method Detail |
---|
protected abstract java.util.Iterator renderIterator()
protected final void onRender(MarkupStream markupStream)
onRender
in class MarkupContainer
markupStream
- The markup streamprotected void renderChild(Component child)
child
- Child component to be renderedprotected void onBeforeRender()
Component
NOTE* If you override this, you *must* call super.onBeforeRender() within your
implementation.
Because this method is responsible for cascading Component.onBeforeRender()
call to its
children it is strongly recommended that super call is made at the end of the override.
onBeforeRender
in class Component
Component.onBeforeRender()
protected abstract void onPopulate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |