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