org.apache.pivot.collections
Class StackListener.Adapter<T>

java.lang.Object
  extended by org.apache.pivot.collections.StackListener.Adapter<T>
All Implemented Interfaces:
StackListener<T>
Enclosing interface:
StackListener<T>

public static class StackListener.Adapter<T>
extends Object
implements StackListener<T>

StackListener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.StackListener
StackListener.Adapter<T>
 
Constructor Summary
StackListener.Adapter()
           
 
Method Summary
 void comparatorChanged(Stack<T> stack, Comparator<T> previousComparator)
          Called when a stack's comparator has changed.
 void itemPopped(Stack<T> stack, T item)
          Called when an item has been popped off of a stack.
 void itemPushed(Stack<T> stack, T item)
          Called when an item has been pushed onto a stack.
 void stackCleared(Stack<T> stack)
          Called when a stack has been cleared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackListener.Adapter

public StackListener.Adapter()
Method Detail

itemPushed

public void itemPushed(Stack<T> stack,
                       T item)
Description copied from interface: StackListener
Called when an item has been pushed onto a stack.

Specified by:
itemPushed in interface StackListener<T>

itemPopped

public void itemPopped(Stack<T> stack,
                       T item)
Description copied from interface: StackListener
Called when an item has been popped off of a stack.

Specified by:
itemPopped in interface StackListener<T>

stackCleared

public void stackCleared(Stack<T> stack)
Description copied from interface: StackListener
Called when a stack has been cleared.

Specified by:
stackCleared in interface StackListener<T>

comparatorChanged

public void comparatorChanged(Stack<T> stack,
                              Comparator<T> previousComparator)
Description copied from interface: StackListener
Called when a stack's comparator has changed.

Specified by:
comparatorChanged in interface StackListener<T>