public class SubFolderViewPanel extends CategoryPanel<File> implements IAdminPanel
this#getDataList(File)
or Default Model if param not specified).
It also returns the current selected node.
TODO: move to SiteexpandedState, listeners, loadLeaves
Constructor and Description |
---|
SubFolderViewPanel(String id) |
SubFolderViewPanel(String id,
org.apache.wicket.model.IModel<File> model) |
SubFolderViewPanel(String id,
org.apache.wicket.model.IModel<File> model,
org.apache.commons.collections.Predicate filter) |
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 List |
getDataList(File rootNode)
Fetch the Data as a Data List.
|
org.apache.commons.collections.Predicate |
getFilter()
A
Predicate , if provided will be used to filter files |
ResourceManagerPanel<File> |
getFolderDetailsPanel() |
protected org.apache.wicket.Component |
getNodeComponent(String id,
org.apache.wicket.model.IModel treeNodeModel,
org.apache.wicket.model.IModel nodeTextModel,
org.apache.wicket.markup.html.tree.BaseTree tree,
File file) |
protected org.apache.wicket.markup.html.tree.AbstractTree |
getTree(String id) |
protected void |
onNodeClicked(Object node,
org.apache.wicket.markup.html.tree.BaseTree tree,
org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
setFilter(org.apache.commons.collections.Predicate filter)
A
Predicate , if provided will be used to filter files |
void |
setFolderDetailsPanel(ResourceManagerPanel<File> folderDetailsPanel) |
addChangeListener, convertToTreeModel, createTreeModel, getListeners, getModel, 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 SubFolderViewPanel(String id, org.apache.wicket.model.IModel<File> model)
id
- model
- @nullable falseshowChildNodes
- public SubFolderViewPanel(String id, org.apache.wicket.model.IModel<File> model, org.apache.commons.collections.Predicate filter)
public SubFolderViewPanel(String id)
protected org.apache.wicket.markup.html.tree.AbstractTree getTree(String id)
getTree
in class CategoryPanel<File>
protected List getDataList(File rootNode)
CategoryPanel
getDataList
in class CategoryPanel<File>
rootNode
- as T @nullable true (if root)protected org.apache.wicket.Component getNodeComponent(String id, org.apache.wicket.model.IModel treeNodeModel, org.apache.wicket.model.IModel nodeTextModel, org.apache.wicket.markup.html.tree.BaseTree tree, File file)
protected final void onNodeClicked(Object node, org.apache.wicket.markup.html.tree.BaseTree tree, org.apache.wicket.ajax.AjaxRequestTarget target)
protected final 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<File>
public org.apache.commons.collections.Predicate getFilter()
Predicate
, if provided will be used to filter filespublic void setFilter(org.apache.commons.collections.Predicate filter)
Predicate
, if provided will be used to filter filespublic ResourceManagerPanel<File> getFolderDetailsPanel()
public void setFolderDetailsPanel(ResourceManagerPanel<File> folderDetailsPanel)
Copyright © 2018. All rights reserved.