Package org.apache.wicket.examples.tree
Class FooExpansion
- java.lang.Object
-
- org.apache.wicket.examples.tree.FooExpansion
-
- All Implemented Interfaces:
Serializable,Iterable<Foo>,Collection<Foo>,Set<Foo>
public class FooExpansion extends Object implements Set<Foo>, Serializable
Example of a custom expansion state:- Author:
- svenmeier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FooExpansion()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Foo foo)booleanaddAll(Collection<? extends Foo> c)voidclear()voidcollapseAll()booleancontains(Object o)booleancontainsAll(Collection<?> c)voidexpandAll()static FooExpansionget()Get the expansion for the session.booleanisEmpty()Iterator<Foo>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<A> A[]toArray(A[] 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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Method Detail
-
expandAll
public void expandAll()
-
collapseAll
public void collapseAll()
-
add
public boolean add(Foo foo)
-
remove
public boolean remove(Object o)
-
contains
public boolean contains(Object o)
-
clear
public void clear()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
toArray
public <A> A[] toArray(A[] a)
-
toArray
public Object[] toArray()
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<Foo>- Specified by:
containsAllin interfaceSet<Foo>
-
addAll
public boolean addAll(Collection<? extends Foo> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
get
public static FooExpansion get()
Get the expansion for the session.- Returns:
- expansion
-
-