public abstract static class siteManagerAdmin.SiteManagerContentTreePanel extends ContentTreePanel implements ChangeListener<Void>
ContentTreePanel.ContentTree
expandedState, listeners, loadLeaves
Constructor and Description |
---|
SiteManagerContentTreePanel(String id,
org.apache.wicket.model.IModel<ContentDescriber> model,
boolean showChildNodes,
List<ContentDescriber> contentHierarchy) |
Modifier and Type | Method and Description |
---|---|
List<ContentDescriber> |
getContentHierarchy() |
ContentManagerPanel |
getContentManager() |
protected List<ContentDescriber> |
getDataList(ContentDescriber rootNode)
Fetch the Data as a Data List.
|
void |
onChange(ChangeGenerator<Void> changeGenerator,
Void modelObject) |
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.
|
void |
setContentHierarchy(List<ContentDescriber> contentHierarchy) |
void |
setContentManager(ContentManagerPanel contentManager) |
createLinkTree, getContentService
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 SiteManagerContentTreePanel(String id, org.apache.wicket.model.IModel<ContentDescriber> model, boolean showChildNodes, List<ContentDescriber> contentHierarchy)
protected List<ContentDescriber> getDataList(ContentDescriber rootNode)
CategoryPanel
getDataList
in class ContentTreePanel
rootNode
- as T @nullable true (if root)public List<ContentDescriber> getContentHierarchy()
public void setContentHierarchy(List<ContentDescriber> contentHierarchy)
public void onChange(ChangeGenerator<Void> changeGenerator, Void modelObject)
onChange
in interface ChangeListener<Void>
changeGenerator
- as the generator that caused the change. Specially useful if the Listener is subscribing to multiple ChangeGenerator
smodelObject
- as the model change communicatedpublic ContentManagerPanel getContentManager()
public void setContentManager(ContentManagerPanel contentManager)
protected void onNodeLinkClicked(Object node, org.apache.wicket.markup.html.tree.BaseTree tree, org.apache.wicket.ajax.AjaxRequestTarget target)
ChangeListener
also.
This also required ContentTree
to update all Components on an event. No time to test regression, so leaving for now.onNodeLinkClicked
in class ContentTreePanel
node
- tree
- target
- Copyright © 2018. All rights reserved.