Class DefaultTableComponentIterator<E extends org.zkoss.zk.ui.Component>
- java.lang.Object
-
- com.hybris.cockpitng.components.table.iterator.DefaultTableComponentIterator<E>
-
- All Implemented Interfaces:
TableComponentIterator<E>,java.util.Iterator<E>
public class DefaultTableComponentIterator<E extends org.zkoss.zk.ui.Component> extends java.lang.Object implements TableComponentIterator<E>
-
-
Constructor Summary
Constructors Constructor Description DefaultTableComponentIterator(org.zkoss.zk.ui.AbstractComponent parent, java.lang.Class<? extends E> elementType, java.util.function.Supplier<E> newElementSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EcreateNewElement()voidforEachRemaining(java.util.function.Consumer<? super E> action)booleanhasNext()Enext()voidremove()voidremoveRemaining()Removes all elements that remains ahead current iterator positionErequest()Iterator cursor moves forward - if required new element is created.
-
-
-
Method Detail
-
createNewElement
protected E createNewElement()
-
request
public E request()
Description copied from interface:TableComponentIteratorIterator cursor moves forward - if required new element is created.- Specified by:
requestin interfaceTableComponentIterator<E extends org.zkoss.zk.ui.Component>- Returns:
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<E extends org.zkoss.zk.ui.Component>
-
next
public E next()
- Specified by:
nextin interfacejava.util.Iterator<E extends org.zkoss.zk.ui.Component>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<E extends org.zkoss.zk.ui.Component>
-
forEachRemaining
public void forEachRemaining(java.util.function.Consumer<? super E> action)
- Specified by:
forEachRemainingin interfacejava.util.Iterator<E extends org.zkoss.zk.ui.Component>
-
removeRemaining
public void removeRemaining()
Description copied from interface:TableComponentIteratorRemoves all elements that remains ahead current iterator position- Specified by:
removeRemainingin interfaceTableComponentIterator<E extends org.zkoss.zk.ui.Component>
-
-