|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.repeater.util.ArrayIteratorAdapter
public abstract class ArrayIteratorAdapter
Iterator over an array. Implementation must provide model(Object)
method to wrap each item in a model before it is returned through
next() method.
| Constructor Summary | |
|---|---|
ArrayIteratorAdapter(java.lang.Object[] array)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
protected abstract IModel |
model(java.lang.Object object)
This method is used to wrap the provided object with an implementation of IModel. |
java.lang.Object |
next()
|
void |
remove()
|
void |
reset()
Resets the iterator position back to the beginning of the array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIteratorAdapter(java.lang.Object[] array)
array - | Method Detail |
|---|
public void remove()
remove in interface java.util.IteratorIterator.remove()public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void reset()
protected abstract IModel model(java.lang.Object object)
object - object to be wrapped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||