Class ChartBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
- com.googlecode.wicket.jquery.core.JQueryBehavior
-
- com.googlecode.wicket.kendo.ui.KendoUIBehavior
-
- com.googlecode.wicket.kendo.ui.dataviz.chart.ChartBehavior
-
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
,KendoDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public abstract class ChartBehavior extends KendoUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a "kendoChart" behavior- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ChartBehavior.OnSeriesClickAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'seriesClick' eventprotected static class
ChartBehavior.SeriesClickEvent
Provides an event object that will be broadcasted by theChartBehavior.OnSeriesClickAjaxBehavior
callback
-
Constructor Summary
Constructors Constructor Description ChartBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, List<Series> series, IChartListener listener)
ConstructorChartBehavior(String selector, List<Series> series, IChartListener listener)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
bind(org.apache.wicket.Component component)
protected abstract CharSequence
getProviderUrl()
Gets the data-provider behavior's urlprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newOnSeriesClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'seriesClick' eventvoid
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
protected void
onConfigure(KendoDataSource dataSource)
Configure theKendoDataSource
with additional optionsvoid
onConfigure(org.apache.wicket.Component component)
-
Methods inherited from class com.googlecode.wicket.kendo.ui.KendoUIBehavior
add, destroy, onDestroy, renderHead, widget, widget, widget, widget
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Field Detail
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChartBehavior
public ChartBehavior(String selector, List<Series> series, IChartListener listener)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")series
- the list ofIColumn
listener
- theIDataTableListener
-
ChartBehavior
public ChartBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, List<Series> series, IChartListener listener)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")options
- theOptions
series
- the list ofIColumn
listener
- theIDataTableListener
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
getProviderUrl
protected abstract CharSequence getProviderUrl()
Gets the data-provider behavior's url- Returns:
- the data-provider behavior's url
-
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigure
in classKendoUIBehavior
-
onConfigure
protected void onConfigure(KendoDataSource dataSource)
Configure theKendoDataSource
with additional options- Parameters:
dataSource
- theKendoDataSource
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
- Specified by:
onAjax
in interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
newOnSeriesClickAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSeriesClickAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'seriesClick' event- Parameters:
source
- theIJQueryAjaxAware
- Returns:
- a new
OnSeriesClickAjaxBehavior
by default
-
-