org.apache.beehive.controls.api.context
Interface ControlHandle


public interface ControlHandle

The ControlHandle interface defines a reference object to a control instance that enables control events to be fired on the control. Control container implementations will provide implementation of this interface that use container-specific dispatch mechanisms to locate the appropriate control container instance when events are fired.


Method Summary
 String getControlID()
          Returns the controlID of the target control referenced by this handle
 Object invokeOperation(String operationName, Object[] args)
          Invokes the named operation on the target control referenced by this handle.
 Object sendEvent(String eventSet, String eventName, Object[] args)
          Delivers the specified event to the target control referenced by this handle.
 

Method Detail

getControlID

String getControlID()
Returns the controlID of the target control referenced by this handle


invokeOperation

Object invokeOperation(String operationName,
                       Object[] args)
                       throws InvocationTargetException
Invokes the named operation on the target control referenced by this handle.

Throws:
InvocationTargetException

sendEvent

Object sendEvent(String eventSet,
                 String eventName,
                 Object[] args)
                 throws InvocationTargetException
Delivers the specified event to the target control referenced by this handle.

Throws:
InvocationTargetException