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

Object
  extended by EventAdaptor

public class EventAdaptor
extends Object

The EventAdaptor class represents the generated class that is necessary to route events for a EventSet onto implemented EventHandlers on an implementation class.


Constructor Summary
EventAdaptor(EventField eventField, ControlEventSet eventSet)
          Constructs a new EventAdaptor for events declared on an EventSet
 
Method Summary
 void addHandler(ControlEvent event, GenMethod eventHandler)
          Adds a new EventHandler for a ControlEvent to the EventAdaptor
 String getClassName()
          Returns the name of the generated class for this adaptor
 ControlEventSet getEventSet()
          Returns the EventSet associated with this Adaptor
 GenMethod getHandler(ControlEvent event)
          Returns the EventHandler for a ControlEvent on this EventAdaptor
 boolean hasHandler(ControlEvent event)
          Returns true if there is an EventHandler for ControlEvent on this EventAdaptor
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventAdaptor

public EventAdaptor(EventField eventField,
                    ControlEventSet eventSet)
Constructs a new EventAdaptor for events declared on an EventSet

Method Detail

getClassName

public String getClassName()
Returns the name of the generated class for this adaptor


getEventSet

public ControlEventSet getEventSet()
Returns the EventSet associated with this Adaptor


addHandler

public void addHandler(ControlEvent event,
                       GenMethod eventHandler)
Adds a new EventHandler for a ControlEvent to the EventAdaptor


hasHandler

public boolean hasHandler(ControlEvent event)
Returns true if there is an EventHandler for ControlEvent on this EventAdaptor


getHandler

public GenMethod getHandler(ControlEvent event)
Returns the EventHandler for a ControlEvent on this EventAdaptor