org.zkoss.zul
Class DefaultTreeNode.TreeNodeChildrenList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<TreeNode<E>>
          extended by org.zkoss.zul.DefaultTreeNode.TreeNodeChildrenList
All Implemented Interfaces:
Serializable, Iterable<TreeNode<E>>, Collection<TreeNode<E>>, List<TreeNode<E>>
Enclosing class:
DefaultTreeNode<E>

protected class DefaultTreeNode.TreeNodeChildrenList
extends AbstractList<TreeNode<E>>
implements Serializable

See Also:
Serialized Form

Field Summary
protected  ArrayList<TreeNode<E>> _list
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected DefaultTreeNode.TreeNodeChildrenList()
           
 
Method Summary
 void add(int index, TreeNode<E> child)
           
 TreeNode<E> get(int index)
           
 TreeNode<E> remove(int index)
           
 boolean remove(Object child)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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.List
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Field Detail

_list

protected final ArrayList<TreeNode<E>> _list
Constructor Detail

DefaultTreeNode.TreeNodeChildrenList

protected DefaultTreeNode.TreeNodeChildrenList()
Method Detail

get

public TreeNode<E> get(int index)
Specified by:
get in interface List<TreeNode<E>>
Specified by:
get in class AbstractList<TreeNode<E>>

size

public int size()
Specified by:
size in interface Collection<TreeNode<E>>
Specified by:
size in interface List<TreeNode<E>>
Specified by:
size in class AbstractCollection<TreeNode<E>>

add

public void add(int index,
                TreeNode<E> child)
Specified by:
add in interface List<TreeNode<E>>
Overrides:
add in class AbstractList<TreeNode<E>>

remove

public TreeNode<E> remove(int index)
Specified by:
remove in interface List<TreeNode<E>>
Overrides:
remove in class AbstractList<TreeNode<E>>

remove

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


Copyright © 2013. All rights reserved.