Interface HasEvents
-
- All Superinterfaces:
IsDefaultEventHandler
- All Known Implementing Classes:
AbstractPluginOptions,AnnotationOptions,ChartBackgroundColorOptions,ChartOptions,ChartPointerOptions,ColorSchemesOptions,CrosshairOptions,DataLabelsOptions,DatasetsItemsSelectorOptions,ExtendedOptions,GlobalOptions,GradientOptions,HtmlLegendOptions,LabelItem,LabelsOptions,Legend,Options,OptionsNode,ScaledOptions,Tooltips,ZoomOptions
public interface HasEvents extends IsDefaultEventHandler
Defines a configuration element which is managing the EVENTS property.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<IsEvent>getEvents()Returns the browser events that the chart should listen to.EventsOptionHandlergetEventsOptionHandler()Returns a event handler handler instance to use in the default methods of this interface.default voidsetEvents(Set<IsEvent> events)Sets the browser events that the legend should listen to.default voidsetEvents(IsEvent... events)Sets the browser events that the chart should listen to.
-
-
-
Method Detail
-
getEventsOptionHandler
EventsOptionHandler getEventsOptionHandler()
Returns a event handler handler instance to use in the default methods of this interface.- Returns:
- a event handler handler instance
-
setEvents
default void setEvents(IsEvent... events)
Sets the browser events that the chart should listen to.- Parameters:
events- the browser events that the chart should listen to.
-
setEvents
default void setEvents(Set<IsEvent> events)
Sets the browser events that the legend should listen to.- Parameters:
events- the browser events that the legend should listen to.
-
getEvents
default Set<IsEvent> getEvents()
Returns the browser events that the chart should listen to.- Specified by:
getEventsin interfaceIsDefaultEventHandler- Returns:
- the browser events that the chart should listen to.
-
-