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 sendEvent(EventRef event, 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


sendEvent

Object sendEvent(EventRef event,
                 Object[] args)
                 throws IllegalAccessException,
                        IllegalArgumentException,
                        InvocationTargetException
Delivers the specified event to the target control referenced by this handle.

Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException