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

Object
  extended by AptField
      extended by AptEventField
Direct Known Subclasses:
AptContextField, AptControlField

public abstract class AptEventField
extends AptField

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


Field Summary
 
Fields inherited from class AptField
_fieldDecl
 
Constructor Summary
AptEventField(FieldDeclaration fieldDecl)
           
 
Method Summary
 void addEventAdaptor(AptEventSet eventSet, EventAdaptor eventAdaptor)
          Adds a EventAdaptor for a particular EventSet
 String getBoundParameters()
          Returns the bound parameter declaration for this event field
 AptControlInterface getControlInterface()
          Returns the ControlInterface associated with this event field
 EventAdaptor getEventAdaptor(AptEventSet eventSet)
          Gets the EventAdaptor for a particular EventSet
 Collection<EventAdaptor> getEventAdaptors()
          Returns all EventAdaptors for this EventField
 HashMap<String,TypeMirror> getTypeBindingMap()
          Returns the formal type binding map (from name to bound type) for the event field
protected abstract  AptControlInterface initControlInterface()
          Inits the ControlInterface associated with this event field.
 
Methods inherited from class AptField
getAccessModifier, getClassName, getLocalName, getName, getReflectField, getType
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptEventField

public AptEventField(FieldDeclaration fieldDecl)
Method Detail

initControlInterface

protected abstract AptControlInterface initControlInterface()
Inits 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. Subclasses will override this to assign an appropriate interface.


getControlInterface

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


getEventAdaptor

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


addEventAdaptor

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


getEventAdaptors

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


getBoundParameters

public String getBoundParameters()
Returns the bound parameter declaration for this event field


getTypeBindingMap

public HashMap<String,TypeMirror> getTypeBindingMap()
Returns the formal type binding map (from name to bound type) for the event field