Class Event
- java.lang.Object
- 
- org.pepstock.charba.client.events.Event
 
- 
- Direct Known Subclasses:
- AbstractEvent,- AddHandlerEvent,- RemoveHandlerEvent
 
 public abstract class Event extends Object Base object for chart events which can be consumed by an handler.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedEvent()Constructor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddispatch(EventHandler handler)Implemented by subclasses to dispatch event on the handler.ObjectgetSource()Returns the source for this event.
 It should be always a chart instance.abstract EventTypegetType()Returns the event type used to register this event to find handlers of the appropriate class.protected voidsetSource(Object source)Set the source that triggered this event.
 It should be always a chart instance.
 
- 
- 
- 
Method Detail- 
getTypepublic abstract EventType getType() Returns the event type used to register this event to find handlers of the appropriate class.- Returns:
- the event type
 
 - 
getSourcepublic Object getSource() Returns the source for this event.
 It should be always a chart instance.- Returns:
- object representing the source of this event
 
 - 
dispatchprotected abstract void dispatch(EventHandler handler) Implemented by subclasses to dispatch event on the handler.- Parameters:
- handler- handler instance
 
 - 
setSourceprotected void setSource(Object source) Set the source that triggered this event.
 It should be always a chart instance.- Parameters:
- source- the source of this event.
 
 
- 
 
-