T - the model object type. It is recommended that the object type implements JSONStringpublic class Chart<T> extends com.googlecode.wicket.jquery.core.JQueryGenericContainer<List<T>> implements IChartListener
| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.wicket.jquery.core.Options |
options |
protected List<Series> |
series |
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
Chart(String id,
org.apache.wicket.model.IModel<List<T>> model,
List<Series> series)
Constructor
|
Chart(String id,
org.apache.wicket.model.IModel<List<T>> model,
List<Series> series,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Chart(String id,
org.apache.wicket.model.IModel<List<T>> model,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Chart(String id,
org.apache.wicket.model.IModel<List<T>> model,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Main constructor
|
Chart(String id,
List<Series> series)
Constructor
|
Chart(String id,
List<Series> series,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Chart(String id,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Chart(String id,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Main constructor
|
Chart(String id,
List<T> data,
List<Series> series)
Constructor
|
Chart(String id,
List<T> data,
List<Series> series,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Chart(String id,
List<T> data,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Chart(String id,
List<T> data,
List<Series> series,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected CharSequence |
getCallbackUrl()
Gets the data-provider behavior's url
|
protected com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> |
getConverter()
Gets the
IJsonConverter |
List<Series> |
getSeries()
|
void |
hide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Hides the
Chart |
boolean |
isSeriesClickEventEnabled()
Indicates whether the 'seriesClick' event is enabled.
If true, the IChartListener.onSeriesClick(AjaxRequestTarget, String, String, String, long) event will be triggered by clicking an event or a free event slot. |
protected com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior |
newListModelBehavior(org.apache.wicket.model.IModel<List<T>> model,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Gets a new
AjaxCallbackBehavior |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure(KendoDataSource dataSource)
Configure the
KendoDataSource with additional options |
void |
onHide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when the
Chart hides |
protected void |
onInitialize() |
void |
onSeriesClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String seriesName,
String seriesField,
String category,
long value)
Triggered when a series is clicked
|
void |
onShow(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when the
Chart shows |
void |
refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Refreshes the widget by reading from the datasource
|
void |
reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
|
void |
show(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Shows the
Chart |
String |
widget()
Gets the Kendo UI widget
|
getModel, getModelObject, setModel, setModelObjectgetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Chart(String id, List<Series> series)
id - the markup idseries - the List of Seriespublic Chart(String id, List<Series> series, com.googlecode.wicket.jquery.core.Options options)
id - the markup idseries - the List of Seriesoptions - the Optionspublic Chart(String id, List<Series> series, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idseries - the List of Seriesconverter - the IJsonConverterpublic Chart(String id, List<Series> series, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idseries - the List of Seriesoptions - the Optionsconverter - the IJsonConverterpublic Chart(String id, List<T> data, List<Series> series)
id - the markup iddata - the list of dataseries - the List of Seriespublic Chart(String id, List<T> data, List<Series> series, com.googlecode.wicket.jquery.core.Options options)
id - the markup iddata - the list of dataseries - the List of Seriesoptions - the Optionspublic Chart(String id, List<T> data, List<Series> series, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup iddata - the list of dataseries - the List of Seriesconverter - the IJsonConverterpublic Chart(String id, List<T> data, List<Series> series, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup iddata - the list of dataseries - the List of Seriesoptions - the Optionsconverter - the IJsonConverterpublic Chart(String id, org.apache.wicket.model.IModel<List<T>> model, List<Series> series)
id - the markup idmodel - the list model of dataseries - the List of Seriespublic Chart(String id, org.apache.wicket.model.IModel<List<T>> model, List<Series> series, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the list model of dataseries - the List of Seriesoptions - the Optionspublic Chart(String id, org.apache.wicket.model.IModel<List<T>> model, List<Series> series, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idmodel - the list model of dataseries - the List of Seriesconverter - the IJsonConverterpublic Chart(String id, org.apache.wicket.model.IModel<List<T>> model, List<Series> series, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idmodel - the list model of dataseries - the List of Seriesoptions - the Optionsconverter - the IJsonConverterpublic String widget()
public final void show(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Charthandler - the IPartialPageRequestHandlerpublic final void hide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Charthandler - the IPartialPageRequestHandlerpublic void reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerpublic void refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerprotected final CharSequence getCallbackUrl()
protected final com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> getConverter()
IJsonConverterIJsonConverterpublic boolean isSeriesClickEventEnabled()
IChartListenerIChartListener.onSeriesClick(AjaxRequestTarget, String, String, String, long) event will be triggered by clicking an event or a free event slot.isSeriesClickEventEnabled in interface IChartListenerfalse by defaultprotected void onInitialize()
onInitialize in class com.googlecode.wicket.jquery.core.JQueryContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetonConfigure in class com.googlecode.wicket.jquery.core.JQueryContainerprotected void onConfigure(KendoDataSource dataSource)
KendoDataSource with additional optionsdataSource - the KendoDataSourcepublic void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidgetonBeforeRender in class com.googlecode.wicket.jquery.core.JQueryContainerpublic void onShow(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Chart showshandler - the IPartialPageRequestHandlerpublic void onHide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Chart hideshandler - the IPartialPageRequestHandlerpublic void onSeriesClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String seriesName,
String seriesField,
String category,
long value)
IChartListeneronSeriesClick in interface IChartListenertarget - the AjaxRequestTargetseriesName - the series nameseriesField - the series fieldcategory - the current category of the pointvalue - the current valuepublic com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior newListModelBehavior(org.apache.wicket.model.IModel<List<T>> model, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
AjaxCallbackBehaviormodel - the @List Modelconverter - the IJsonConverterListModelBehavior, by defaultCopyright © 2021 7thWeb. All rights reserved.