Class ChartsEvent

  • All Implemented Interfaces:
    Serializable

    public class ChartsEvent
    extends org.zkoss.zk.ui.event.Event
    Represents an event cause by user's interaction with the Highcharts.
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Constructor Detail

      • ChartsEvent

        public ChartsEvent​(String name,
                           org.zkoss.zk.ui.Component target,
                           int sIndex,
                           int pIndex,
                           Comparable<?> category,
                           boolean checked,
                           boolean isDrilldown)
    • Method Detail

      • getChartsEvent

        public static final ChartsEvent getChartsEvent​(org.zkoss.zk.au.AuRequest request)
      • getCategory

        public Comparable<?> getCategory()
        Returns the category value, if any.
      • getPointIndex

        public int getPointIndex()
        Returns the point index, if any.

        Only support for ChartsEvents.ON_PLOT_CLICK

        Returns:
        -1 if not a point event
      • getSeriesIndex

        public int getSeriesIndex()
        Returns the series index, if any.
      • isChecked

        public boolean isChecked()
        Returns the checkbox event whether is checked, if any.

        Only support for ChartsEvents.ON_PLOT_CHECKBOX_CLICK

        Returns:
        false if not a checkbox event
      • isDrilldown

        public boolean isDrilldown()
      • getSeries

        public Series getSeries()
        Returns the series object.