public class ChartBehavior
extends org.apache.wicket.behavior.Behavior
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.| Constructor and Description |
|---|
ChartBehavior(Chart container)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
includeChartJavascript(org.apache.wicket.markup.html.IHeaderResponse response,
Options options,
JsonRenderer renderer,
String markupId)
Includes the javascript that calls the Highcharts library to visualize the
chart.
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response) |
protected void includeChartJavascript(org.apache.wicket.markup.html.IHeaderResponse response,
Options options,
JsonRenderer renderer,
String markupId)
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.public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2012. All Rights Reserved.