This class is useful in the following scenarios:
Attributes | Name and Description |
---|---|
|
caplin.core.ListenerFactory(Function fInterface, String sEvent)
Construct a new |
Attributes | Name and Description |
---|---|
|
Object
createListener(Object oTarget, String sMethod)
Returns a listener that will forward received events through to the given method on the given object. |
►
caplin.core.ListenerFactory(Function fInterface, String sEvent)
Construct a new ListenerFactory
that can create listeners for the given event, on the given interface.
Function | fInterface | The listener interface that objects created with this factory will implement. |
String | sEvent | The particular event on the listener interface that will be proxied through. |
►
Object
createListener(Object oTarget, String sMethod)
Returns a listener that will forward received events through to the given method on the given object.
Object | oTarget | The object that will be invoked when events are received. |
String | sMethod | The name of the method to invoke on the target object. |