Class DefaultTableComponentIterator<E extends org.zkoss.zk.ui.Component>

  • 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 E createNewElement()  
      void forEachRemaining​(java.util.function.Consumer<? super E> action)  
      boolean hasNext()  
      E next()  
      void remove()  
      void removeRemaining()
      Removes all elements that remains ahead current iterator position
      E request()
      Iterator cursor moves forward - if required new element is created.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTableComponentIterator

        public DefaultTableComponentIterator​(org.zkoss.zk.ui.AbstractComponent parent,
                                             java.lang.Class<? extends E> elementType,
                                             java.util.function.Supplier<E> newElementSupplier)
    • Method Detail

      • createNewElement

        protected E createNewElement()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<E extends org.zkoss.zk.ui.Component>
      • next

        public E next()
        Specified by:
        next in interface java.util.Iterator<E extends org.zkoss.zk.ui.Component>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<E extends org.zkoss.zk.ui.Component>
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super E> action)
        Specified by:
        forEachRemaining in interface java.util.Iterator<E extends org.zkoss.zk.ui.Component>