Package org.zkoss.zul

Class DefaultTreeNode.TreeNodeChildrenList

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<TreeNode<E>>, java.util.Collection<TreeNode<E>>, java.util.List<TreeNode<E>>
    Enclosing class:
    DefaultTreeNode<E>

    protected class DefaultTreeNode.TreeNodeChildrenList
    extends java.util.AbstractList<TreeNode<E>>
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ArrayList<TreeNode<E>> _list  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TreeNodeChildrenList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, TreeNode<E> child)  
      TreeNode<E> get​(int index)  
      TreeNode<E> remove​(int index)  
      boolean remove​(java.lang.Object child)  
      protected void removeRange​(int fromIndex, int toIndex)  
      int size()  
      • Methods inherited from class java.util.AbstractList

        add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Field Detail

      • _list

        protected final java.util.ArrayList<TreeNode<E>> _list
    • Constructor Detail

      • TreeNodeChildrenList

        protected TreeNodeChildrenList()
    • Method Detail

      • get

        public TreeNode<E> get​(int index)
        Specified by:
        get in interface java.util.List<TreeNode<E>>
        Specified by:
        get in class java.util.AbstractList<TreeNode<E>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<TreeNode<E>>
        Specified by:
        size in interface java.util.List<TreeNode<E>>
        Specified by:
        size in class java.util.AbstractCollection<TreeNode<E>>
      • add

        public void add​(int index,
                        TreeNode<E> child)
        Specified by:
        add in interface java.util.List<TreeNode<E>>
        Overrides:
        add in class java.util.AbstractList<TreeNode<E>>
      • removeRange

        protected void removeRange​(int fromIndex,
                                   int toIndex)
        Overrides:
        removeRange in class java.util.AbstractList<TreeNode<E>>
      • remove

        public TreeNode<E> remove​(int index)
        Specified by:
        remove in interface java.util.List<TreeNode<E>>
        Overrides:
        remove in class java.util.AbstractList<TreeNode<E>>
      • remove

        public boolean remove​(java.lang.Object child)
        Specified by:
        remove in interface java.util.Collection<TreeNode<E>>
        Specified by:
        remove in interface java.util.List<TreeNode<E>>
        Overrides:
        remove in class java.util.AbstractCollection<TreeNode<E>>