com.bstek.dorado.util.proxy
public abstract class ChildrenListSupport<E> extends ListProxySupport<E>
Constructor and Description |
---|
ChildrenListSupport() |
ChildrenListSupport(java.util.List<E> target) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
add(int index,
E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
protected abstract void |
childAdded(E child)
当有新的子对象被添加到Set时被激活的方法。
|
protected abstract void |
childRemoved(E child)
当有新的子对象被添加到Set时被激活的方法。
|
void |
clear() |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
get, indexOf, lastIndexOf, listIterator, listIterator, set, setTarget, subList
contains, containsAll, equals, getTarget, hashCode, isEmpty, iterator, retainAll, size, toArray, toArray, writeReplace
public ChildrenListSupport()
public ChildrenListSupport(java.util.List<E> target)
target
- 被代理的List。protected abstract void childAdded(E child)
child
- 子对象protected abstract void childRemoved(E child)
child
- 子对象public boolean add(E o)
add
in interface java.util.Collection<E>
add
in interface java.util.List<E>
add
in class CollectionProxySupport<E>
public void add(int index, E o)
add
in interface java.util.List<E>
add
in class ListProxySupport<E>
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
addAll
in class ListProxySupport<E>
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
addAll
in class ListProxySupport<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.List<E>
clear
in class CollectionProxySupport<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
remove
in interface java.util.List<E>
remove
in class CollectionProxySupport<E>
public E remove(int index)
remove
in interface java.util.List<E>
remove
in class ListProxySupport<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.List<E>
removeAll
in class CollectionProxySupport<E>
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.