public class AjaxTreeView extends com.googlecode.wicket.jquery.core.JQueryContainer implements ITreeViewListener
| Modifier and Type | Class and Description |
|---|---|
static class |
AjaxTreeView.ExpandBehavior
Provides a databound behavior that extends node(s)
|
| 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 |
|---|
AjaxTreeView(String id,
TreeViewModel model)
Constructor
|
AjaxTreeView(String id,
TreeViewModel model,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
expandPath(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String path)
Expand the
AjaxTreeView to the specified path |
void |
expandPaths(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
List<String> paths)
Expand the
AjaxTreeView to all specified paths |
protected CharSequence |
getCallbackUrl()
Gets the
TreeViewModelBehavior callback url |
TreeViewModel |
getModel()
Gets the sheduler's model
|
String |
getTemplateToken()
Gets the template script token/id
|
boolean |
isChangeEventEnabled()
Indicates whether the 'change' event is enabled.
If true, the ITreeViewListener.onChange(AjaxRequestTarget, int, String) event will be triggered |
boolean |
isDropEventEnabled()
Indicates whether the 'drop' event is enabled.
If true, the ITreeViewListener.onDrop(AjaxRequestTarget, int, int, String) event will be triggered |
boolean |
isExpandEventEnabled()
Indicates whether the 'expand' event is enabled.
If true, the ITreeViewListener.onExpand(AjaxRequestTarget, int) event will be triggered |
protected com.googlecode.wicket.jquery.core.template.IJQueryTemplate |
newTemplate()
Gets a new
IJQueryTemplate to customize the built-in edit window |
protected TreeNodeFactory |
newTreeNodeFactory()
Gets a new
TreeNodeFactory |
protected TreeViewModelBehavior |
newTreeViewModelBehavior(TreeViewModel model,
TreeNodeFactory factory)
Gets a new
TreeViewModelBehavior |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector)
see
IJQueryWidget.newWidgetBehavior(String) |
void |
onChange(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
String nodePath)
Triggered when the selection has changed
|
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure(KendoDataSource.HierarchicalDataSource dataSource)
Configure the
KendoDataSource.HierarchicalDataSource with additional options |
void |
onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
int parentId,
String position)
Triggered when a node is (drag and) dropped
|
void |
onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId)
Triggered when a node is expanding
|
protected void |
onInitialize() |
protected void |
onRefresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when
refresh(IPartialPageRequestHandler) has been called |
void |
refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Refreshes the widget by reading from the datasource
|
String |
widget()
Gets the Kendo UI widget
|
getWebApplication, 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 AjaxTreeView(String id, TreeViewModel model)
id - the markup idmodel - the TreeViewModelpublic AjaxTreeView(String id, TreeViewModel model, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the TreeViewModeloptions - the Optionspublic String widget()
public void refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerpublic void expandPath(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String path)
AjaxTreeView to the specified pathhandler - the IPartialPageRequestHandlerpath - the path to the node, as an id-array, ie: [1, 2, 3]public void expandPaths(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
List<String> paths)
AjaxTreeView to all specified pathshandler - the IPartialPageRequestHandlerpaths - the path list to the node, as id-arraysexpandPath(IPartialPageRequestHandler, String)public TreeViewModel getModel()
TreeViewModelprotected CharSequence getCallbackUrl()
TreeViewModelBehavior callback urlTreeViewModelBehavior callback urlpublic String getTemplateToken()
public boolean isChangeEventEnabled()
ITreeViewListenerITreeViewListener.onChange(AjaxRequestTarget, int, String) event will be triggeredisChangeEventEnabled in interface ITreeViewListenerpublic boolean isExpandEventEnabled()
ITreeViewListenerITreeViewListener.onExpand(AjaxRequestTarget, int) event will be triggeredisExpandEventEnabled in interface ITreeViewListenerpublic boolean isDropEventEnabled()
ITreeViewListenerITreeViewListener.onDrop(AjaxRequestTarget, int, int, String) event will be triggeredisDropEventEnabled in interface ITreeViewListenerprotected 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.HierarchicalDataSourceprotected void onRefresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
refresh(IPartialPageRequestHandler) has been calledhandler - the IPartialPageRequestHandlerpublic void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId)
ITreeViewListeneronExpand in interface ITreeViewListenertarget - the AjaxRequestTargetnodeId - the node-idpublic void onChange(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
String nodePath)
ITreeViewListeneronChange in interface ITreeViewListenertarget - the AjaxRequestTargetnodeId - the node-idnodePath - the node path as array, ie [1,2,3]public void onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
int parentId,
String position)
ITreeViewListeneronDrop in interface ITreeViewListenertarget - the AjaxRequestTargetnodeId - the node-idparentId - the node that the node-id is being dropped upon.position - one of the values 'over', 'before', or 'after'.public com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
IJQueryWidget.newWidgetBehavior(String)newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected com.googlecode.wicket.jquery.core.template.IJQueryTemplate newTemplate()
IJQueryTemplate to customize the built-in edit windowprotected TreeNodeFactory newTreeNodeFactory()
TreeNodeFactoryTreeNodeFactoryprotected TreeViewModelBehavior newTreeViewModelBehavior(TreeViewModel model, TreeNodeFactory factory)
TreeViewModelBehaviormodel - the TreeViewModelfactory - the TreeNodeFactoryTreeViewModelBehaviorCopyright © 2021 7thWeb. All rights reserved.