public class EventControllerListenerProxy extends ej.kf.Proxy<ej.basedriver.ControllerListener> implements EventControllerListener
Constructor and Description |
---|
EventControllerListenerProxy() |
Modifier and Type | Method and Description |
---|---|
<D extends ej.ecom.Device,E extends Event<D>> |
addEventHandler(java.lang.String deviceType,
EventHandler<D,E> handler)
Add an event handler for all device with the specific type.
|
<D extends ej.ecom.Device,E extends Event<D>> |
addEventHandler(java.lang.String deviceType,
EventHandler<D,E> handler,
D device)
Add an event handler on a specific device
|
<D extends ej.ecom.Device> |
onError(java.lang.Class<D> deviceType,
D device) |
<D extends ej.ecom.Device> |
onEvent(java.lang.Class<D> deviceType,
D device) |
<D extends ej.ecom.Device> |
onRegister(java.lang.Class<D> deviceType,
D device) |
<D extends ej.ecom.Device> |
onUnregister(D device) |
<D extends ej.ecom.Device,E extends Event<D>> |
removeEventHandler(EventHandler<D,E> handler)
Remove the handler.
|
public <D extends ej.ecom.Device> void onError(java.lang.Class<D> deviceType, D device)
onError
in interface ej.basedriver.ControllerListener
public <D extends ej.ecom.Device> void onEvent(java.lang.Class<D> deviceType, D device)
onEvent
in interface ej.basedriver.ControllerListener
public <D extends ej.ecom.Device> void onRegister(java.lang.Class<D> deviceType, D device)
onRegister
in interface ej.basedriver.ControllerListener
public <D extends ej.ecom.Device> void onUnregister(D device)
onUnregister
in interface ej.basedriver.ControllerListener
public <D extends ej.ecom.Device,E extends Event<D>> void addEventHandler(java.lang.String deviceType, EventHandler<D,E> handler, D device)
EventControllerListener
addEventHandler
in interface EventControllerListener
public <D extends ej.ecom.Device,E extends Event<D>> void addEventHandler(java.lang.String deviceType, EventHandler<D,E> handler)
EventControllerListener
addEventHandler
in interface EventControllerListener
public <D extends ej.ecom.Device,E extends Event<D>> void removeEventHandler(EventHandler<D,E> handler)
EventControllerListener
removeEventHandler
in interface EventControllerListener