T - the model object type. It is recommended that the object type implements JSONStringpublic class Diagram<T extends IDiagramNode<T>> extends com.googlecode.wicket.jquery.core.JQueryGenericContainer<List<T>> implements IDiagramListener
| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.wicket.jquery.core.Options |
options |
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 |
|---|
Diagram(String id)
Constructor
|
Diagram(String id,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Diagram(String id,
org.apache.wicket.model.IModel<List<T>> model)
Constructor
|
Diagram(String id,
org.apache.wicket.model.IModel<List<T>> model,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Diagram(String id,
org.apache.wicket.model.IModel<List<T>> model,
com.googlecode.wicket.jquery.core.Options options)
Main constructor
|
Diagram(String id,
org.apache.wicket.model.IModel<List<T>> model,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Main constructor
|
Diagram(String id,
List<T> data)
Constructor
|
Diagram(String id,
List<T> data,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Constructor
|
Diagram(String id,
List<T> data,
com.googlecode.wicket.jquery.core.Options options)
constructor
|
Diagram(String id,
List<T> data,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
constructor
|
Diagram(String id,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Diagram(String id,
com.googlecode.wicket.jquery.core.Options options,
com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
Main 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 |
boolean |
isClickEventEnabled()
Indicates whether the 'click' event is enabled.
If true, the IDiagramListener.onClick(AjaxRequestTarget, JSONObject) event will be triggered when clicking on an item |
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
AbstractAjaxBehavior |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when a diagram item is clicked
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
T object)
Triggered when a series is clicked
|
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure(KendoDataSource.HierarchicalDataSource dataSource)
Configure the
KendoDataSource.HierarchicalDataSource with additional options |
protected void |
onInitialize() |
void |
refresh(org.apache.wicket.ajax.AjaxRequestTarget target)
Refreshes the widget by reading from the datasource
|
void |
reload(org.apache.wicket.ajax.AjaxRequestTarget target)
|
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 Diagram(String id)
id - the markup idpublic Diagram(String id, com.googlecode.wicket.jquery.core.Options options)
id - the markup idoptions - the Optionspublic Diagram(String id, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idconverter - the IJsonConverterpublic Diagram(String id, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idoptions - the Optionsconverter - the IJsonConverterpublic Diagram(String id, List<T> data)
id - the markup iddata - the list of datapublic Diagram(String id, List<T> data, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup iddata - the list of dataconverter - the IJsonConverterpublic Diagram(String id, List<T> data, com.googlecode.wicket.jquery.core.Options options)
id - the markup iddata - the list of dataoptions - the Optionspublic Diagram(String id, List<T> data, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup iddata - the list of dataoptions - the Optionsconverter - the IJsonConverterpublic Diagram(String id, org.apache.wicket.model.IModel<List<T>> model)
id - the markup idmodel - the list model of datapublic Diagram(String id, org.apache.wicket.model.IModel<List<T>> model, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idmodel - the list model of dataconverter - the IJsonConverterpublic Diagram(String id, org.apache.wicket.model.IModel<List<T>> model, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the list model of dataoptions - the Optionspublic Diagram(String id, org.apache.wicket.model.IModel<List<T>> model, com.googlecode.wicket.jquery.core.Options options, com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> converter)
id - the markup idmodel - the list model of dataoptions - the Optionsconverter - the IJsonConverterpublic String widget()
public void reload(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetpublic void refresh(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetprotected final CharSequence getCallbackUrl()
protected final com.googlecode.wicket.jquery.core.converter.IJsonConverter<T> getConverter()
IJsonConverterIJsonConverterpublic boolean isClickEventEnabled()
IDiagramListenerIDiagramListener.onClick(AjaxRequestTarget, JSONObject) event will be triggered when clicking on an itemisClickEventEnabled in interface IDiagramListenerfalse 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.HierarchicalDataSource dataSource)
KendoDataSource.HierarchicalDataSource with additional optionsdataSource - the KendoDataSource.HierarchicalDataSourcepublic 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 onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
IDiagramListeneronClick in interface IDiagramListenertarget - the AjaxRequestTargetobject - the JSONObject itempublic void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
T object)
target - the AjaxRequestTargetobject - the converted objectpublic 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)
AbstractAjaxBehaviormodel - the @List Modelconverter - the IJsonConverterListModelBehavior, by defaultCopyright © 2021 7thWeb. All rights reserved.