public class EventHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Constructor and Description |
---|
EventHandler(java.lang.Object target,
java.lang.String action,
java.lang.String eventPropertyName,
java.lang.String listenerMethodName) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(java.lang.Class<T> listenerInterface,
java.lang.Object target,
java.lang.String action) |
static <T> T |
create(java.lang.Class<T> listenerInterface,
java.lang.Object target,
java.lang.String action,
java.lang.String eventPropertyName) |
static <T> T |
create(java.lang.Class<T> listenerInterface,
java.lang.Object target,
java.lang.String action,
java.lang.String eventPropertyName,
java.lang.String listenerMethodName) |
java.lang.String |
getAction() |
java.lang.String |
getEventPropertyName() |
java.lang.String |
getListenerMethodName() |
java.lang.Object |
getTarget() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] arguments) |
public EventHandler(java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName, java.lang.String listenerMethodName)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] arguments)
invoke
in interface java.lang.reflect.InvocationHandler
public java.lang.String getListenerMethodName()
public java.lang.String getEventPropertyName()
public java.lang.String getAction()
public java.lang.Object getTarget()
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName, java.lang.String listenerMethodName)
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName)
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action)