org.apache.wicket.examples.tree
Class FooExpansion

java.lang.Object
  extended by 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
FooExpansion()
           
 
Method Summary
 boolean add(Foo foo)
           
 boolean addAll(Collection<? extends Foo> c)
           
 void clear()
           
 void collapseAll()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 void expandAll()
           
static FooExpansion get()
          Get the expansion for the session.
 boolean isEmpty()
           
 Iterator<Foo> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 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.Set
equals, hashCode
 

Constructor Detail

FooExpansion

public FooExpansion()
Method Detail

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.