|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.extensions.markup.html.repeater.util.ProviderSubset<T>
public class ProviderSubset<T>
A subset of a ITreeProvider
's tree offering automatic detachment.
Make sure that the containing model calls IDetachable.detach()
on its model object.
ITreeProvider.model(Object)
,
Serialized FormConstructor Summary | |
---|---|
ProviderSubset(ITreeProvider<T> provider)
Create an empty subset. |
|
ProviderSubset(ITreeProvider<T> provider,
boolean addRoots)
Create a subset optionally containing all roots of the provider. |
Method Summary | ||
---|---|---|
boolean |
add(T t)
|
|
boolean |
addAll(Collection<? extends T> ts)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> cs)
|
|
IModel<Set<T>> |
createModel()
Create a model holding this set. |
|
void |
detach()
Detaches model after use. |
|
boolean |
isEmpty()
|
|
Iterator<T> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> cs)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(S[] a)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals, hashCode |
Constructor Detail |
---|
public ProviderSubset(ITreeProvider<T> provider)
provider
- the provider of the complete setpublic ProviderSubset(ITreeProvider<T> provider, boolean addRoots)
provider
- the provider of the complete setaddRoots
- should all roots be added to this subsetMethod Detail |
---|
public void detach()
IDetachable
detach
in interface IDetachable
public int size()
size
in interface Collection<T>
size
in interface Set<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface Set<T>
public void clear()
clear
in interface Collection<T>
clear
in interface Set<T>
public boolean contains(Object o)
contains
in interface Collection<T>
contains
in interface Set<T>
public boolean add(T t)
add
in interface Collection<T>
add
in interface Set<T>
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface Set<T>
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in interface Set<T>
public boolean addAll(Collection<? extends T> ts)
addAll
in interface Collection<T>
addAll
in interface Set<T>
public boolean containsAll(Collection<?> cs)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean removeAll(Collection<?> cs)
removeAll
in interface Collection<T>
removeAll
in interface Set<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
retainAll
in interface Set<T>
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface Set<T>
public <S> S[] toArray(S[] a)
toArray
in interface Collection<T>
toArray
in interface Set<T>
public IModel<Set<T>> createModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |