com.googlecode.wickedcharts.wicket6.highcharts.features.basic
Class ChartBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wickedcharts.wicket6.highcharts.features.basic.ChartBehavior
- All Implemented Interfaces:
- Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
public class ChartBehavior
- extends org.apache.wicket.behavior.Behavior
This behavior takes in an Options object containing the configuration
of a chart and calls the proper javascript to display the chart in the
component to which this behavior is added.
- Author:
- Tom Hombergs (tom.hombergs@gmail.com)
- See Also:
- Serialized Form
|
Method Summary |
protected void |
includeChartJavascript(org.apache.wicket.markup.head.IHeaderResponse response,
Options options,
JsonRenderer renderer,
String markupId)
Includes the javascript that calls the Highcharts library to visualize the
chart. |
void |
onConfigure(org.apache.wicket.Component component)
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
|
| Methods inherited from class org.apache.wicket.behavior.Behavior |
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartBehavior
public ChartBehavior(Chart container)
- Constructor.
- Parameters:
options - the options for the chart. The Option class is very
similar in structure to the Highcharts API reference, see
http://www.highcharts.com/ref/.
includeChartJavascript
protected void includeChartJavascript(org.apache.wicket.markup.head.IHeaderResponse response,
Options options,
JsonRenderer renderer,
String markupId)
- Includes the javascript that calls the Highcharts library to visualize the
chart.
- Parameters:
response - the Wicket HeaderResponseoptions - the options containing the data to displayrenderer - the JsonRenderer responsible for rendering the optionsmarkupId - the DOM ID of the chart component.
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigure in class org.apache.wicket.behavior.Behavior
renderHead
public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor- Overrides:
renderHead in class org.apache.wicket.behavior.Behavior
Copyright © 2013. All Rights Reserved.