org.apache.pivot.collections
Class Stack.StackListenerList<T>

java.lang.Object
  extended by org.apache.pivot.util.ListenerList<StackListener<T>>
      extended by org.apache.pivot.collections.Stack.StackListenerList<T>
All Implemented Interfaces:
Iterable<StackListener<T>>, StackListener<T>
Enclosing interface:
Stack<T>

public static class Stack.StackListenerList<T>
extends ListenerList<StackListener<T>>
implements StackListener<T>

Stack listener list.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.StackListener
StackListener.Adapter<T>
 
Constructor Summary
Stack.StackListenerList()
           
 
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 org.apache.pivot.util.ListenerList
add, contains, get, getLength, isEmpty, iterator, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stack.StackListenerList

public Stack.StackListenerList()
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>