|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.swing.GenericItemListener
public class GenericItemListener
Listener that will execute a given functor on every item event.
Copyright © 2004-2005 David A. Hall
Constructor Summary | |
---|---|
GenericItemListener(UnaryFunctor<java.awt.event.ItemEvent,?> fn)
Builds an item listener that executes the given functor for every item event it receives. |
Method Summary | ||
---|---|---|
static
|
buildEventListener(java.lang.Class<T> type,
T object,
java.lang.String methodName)
Builds a listener that passes each item event it receives to the given method. |
|
static
|
buildListener(java.lang.Class<T> type,
T object,
java.lang.String methodName)
Builds a listener invokes the given no-arg method every time an item event fires. |
|
void |
itemStateChanged(java.awt.event.ItemEvent evt)
Passes the item event to the functor given at construction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericItemListener(UnaryFunctor<java.awt.event.ItemEvent,?> fn)
Method Detail |
---|
public static <T> GenericItemListener buildListener(java.lang.Class<T> type, T object, java.lang.String methodName)
public static <T> GenericItemListener buildEventListener(java.lang.Class<T> type, T object, java.lang.String methodName)
public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged
in interface java.awt.event.ItemListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |