public abstract class ContentTreePanel extends CategoryPanel<ContentDescriber> implements IAdminPanel
ContentDescriber
specific implementation for CategoryPanel
Modifier and Type | Class and Description |
---|---|
protected class |
ContentTreePanel.ContentTree |
expandedState, listeners, loadLeaves
Constructor and Description |
---|
ContentTreePanel(String id,
org.apache.wicket.model.IModel<ContentDescriber> model,
boolean showChildNodes) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.markup.html.tree.LinkTree |
createLinkTree(String id,
TreeModel treeModel)
One can intercept LinkTree Ajax requests via its
LinkTree.onNodeLinkClicked(java.lang.Object, org.apache.wicket.markup.html.tree.BaseTree, org.apache.wicket.ajax.AjaxRequestTarget) etc. |
protected abstract ContentService |
getContentService()
Override Source in case content from an auxiliary Data Source
|
protected List<ContentDescriber> |
getDataList(ContentDescriber rootNode)
Fetch the Data as a Data List.
|
protected void |
onNodeLinkClicked(Object node,
org.apache.wicket.markup.html.tree.BaseTree tree,
org.apache.wicket.ajax.AjaxRequestTarget target)
When a node is clicked in the Tree then this is called.
|
addChangeListener, convertToTreeModel, createTreeModel, getListeners, getModel, getTree, isExpandedState, isLoadLeaves, modifyNode, notifyAllListeners, onInitialize, onInitialize, setExpandedState, setListeners, setLoadLeaves, setState
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public ContentTreePanel(String id, org.apache.wicket.model.IModel<ContentDescriber> model, boolean showChildNodes)
id
- model
- @nullable falseshowChildNodes
- protected abstract ContentService getContentService()
protected List<ContentDescriber> getDataList(ContentDescriber rootNode)
CategoryPanel
getDataList
in class CategoryPanel<ContentDescriber>
rootNode
- as T @nullable true (if root)protected org.apache.wicket.markup.html.tree.LinkTree createLinkTree(String id, TreeModel treeModel)
CategoryPanel
LinkTree.onNodeLinkClicked(java.lang.Object, org.apache.wicket.markup.html.tree.BaseTree, org.apache.wicket.ajax.AjaxRequestTarget)
etc.
Define custom/anon class so you can intercept Ajax requests.createLinkTree
in class CategoryPanel<ContentDescriber>
protected void onNodeLinkClicked(Object node, org.apache.wicket.markup.html.tree.BaseTree tree, org.apache.wicket.ajax.AjaxRequestTarget target)
node
- tree
- target
- Copyright © 2018. All rights reserved.