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:
- expanded
Foo
s are identified by their id
- efficient expansion of all
Foo
- state is stored in the session
- Author:
- svenmeier
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FooExpansion
public FooExpansion()
expandAll
public void expandAll()
collapseAll
public void collapseAll()
add
public boolean add(Foo foo)
- Specified by:
add
in interface Collection<Foo>
- Specified by:
add
in interface Set<Foo>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<Foo>
- Specified by:
remove
in interface Set<Foo>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<Foo>
- Specified by:
contains
in interface Set<Foo>
clear
public void clear()
- Specified by:
clear
in interface Collection<Foo>
- Specified by:
clear
in interface Set<Foo>
size
public int size()
- Specified by:
size
in interface Collection<Foo>
- Specified by:
size
in interface Set<Foo>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<Foo>
- Specified by:
isEmpty
in interface Set<Foo>
toArray
public <A> A[] toArray(A[] a)
- Specified by:
toArray
in interface Collection<Foo>
- Specified by:
toArray
in interface Set<Foo>
iterator
public Iterator<Foo> iterator()
- Specified by:
iterator
in interface Iterable<Foo>
- Specified by:
iterator
in interface Collection<Foo>
- Specified by:
iterator
in interface Set<Foo>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<Foo>
- Specified by:
toArray
in interface Set<Foo>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<Foo>
- Specified by:
containsAll
in interface Set<Foo>
addAll
public boolean addAll(Collection<? extends Foo> c)
- Specified by:
addAll
in interface Collection<Foo>
- Specified by:
addAll
in interface Set<Foo>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<Foo>
- Specified by:
retainAll
in interface Set<Foo>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<Foo>
- Specified by:
removeAll
in interface Set<Foo>
get
public static FooExpansion get()
- Get the expansion for the session.
- Returns:
- expansion
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.