org.apache.beehive.controls.runtime.generator
Class EventField

Object
  extended by GenField
      extended by EventField
Direct Known Subclasses:
ContextField, ControlField

public abstract class EventField
extends GenField

The GenField class represents a field type that is also an event source


Constructor Summary
EventField()
           
 
Method Summary
 void addEventAdaptor(ControlEventSet eventSet, EventAdaptor eventAdaptor)
          Adds a EventAdaptor for a particular EventSet
 ControlInterface getControlInterface()
          Returns the ControlInterface associated with this event field
 EventAdaptor getEventAdaptor(ControlEventSet eventSet)
          Gets the EventAdaptor for a particular EventSet
 Collection<EventAdaptor> getEventAdaptors()
          Returns all EventAdaptors for this EventField
protected  void init()
           
protected abstract  ControlInterface initControlInterface()
          Initializes the ControlInterface associated with this event field.
 
Methods inherited from class GenField
getAccessModifier, getLocalName, getName, getReflectField, getType
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventField

public EventField()
Method Detail

init

protected void init()

initControlInterface

protected abstract ControlInterface initControlInterface()
Initializes the ControlInterface associated with this event field. The public interface for controls and contextual services, and their associated events can be modeled in the same way.


getControlInterface

public ControlInterface getControlInterface()
Returns the ControlInterface associated with this event field


getEventAdaptor

public EventAdaptor getEventAdaptor(ControlEventSet eventSet)
Gets the EventAdaptor for a particular EventSet


addEventAdaptor

public void addEventAdaptor(ControlEventSet eventSet,
                            EventAdaptor eventAdaptor)
Adds a EventAdaptor for a particular EventSet


getEventAdaptors

public Collection<EventAdaptor> getEventAdaptors()
Returns all EventAdaptors for this EventField