@Deprecated public abstract class DefaultAbstractTree extends AbstractTree
The class itself adds no component to tree items. If you use this class directly, you have to
implement populateTreeItem() on your own. If you want to use an existing (complete) tree class,
use Tree
This class allows you to choose between 3 types of links.
setLinkType(LinkType)
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultAbstractTree.ILinkCallback
Deprecated.
Helper class for calling an action from a link.
|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER| Constructor and Description |
|---|
DefaultAbstractTree(String id)
Deprecated.
Tree constructor.
|
DefaultAbstractTree(String id,
IModel<? extends TreeModel> model)
Deprecated.
Tree constructor.
|
DefaultAbstractTree(String id,
TreeModel model)
Deprecated.
Tree constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ResourceReference |
getCSS()
Deprecated.
Returns the resource reference of default stylesheet.
|
protected ResourceReference |
getFolderClosed()
Deprecated.
Returns the resource reference of default closed tree folder.
|
protected ResourceReference |
getFolderOpen()
Deprecated.
Returns the resource reference of default open tree folder.
|
protected ResourceReference |
getItem()
Deprecated.
Returns the resource reference of default tree item (not folder).
|
LinkType |
getLinkType()
Deprecated.
Returns the current type of links on tree items.
|
protected ResourceReference |
getNodeIcon(TreeNode node)
Deprecated.
Returns the resource reference for icon of specified tree node.
|
protected Component |
newIndentation(MarkupContainer parent,
String id,
TreeNode node,
int level)
Deprecated.
Creates the indentation element.
|
protected MarkupContainer |
newJunctionImage(MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates an image placed on junction link.
|
protected Component |
newJunctionLink(MarkupContainer parent,
String id,
String imageId,
TreeNode node)
Deprecated.
Creates the junction link for given node.
|
protected MarkupContainer |
newLink(MarkupContainer parent,
String id,
DefaultAbstractTree.ILinkCallback callback)
Deprecated.
Creates a link of type specified by current linkType.
|
protected Component |
newNodeIcon(MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates the icon for current node.
|
protected MarkupContainer |
newNodeLink(MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates a link that can be used to select / deselect the specified node.
|
protected void |
onJunctionLinkClicked(AjaxRequestTarget target,
TreeNode node)
Deprecated.
Callback function called after user clicked on an junction link.
|
protected void |
onNodeLinkClicked(AjaxRequestTarget target,
TreeNode node)
Deprecated.
This callback method is called after user has selected / deselected the given node.
|
void |
renderHead(IHeaderResponse response)
Deprecated.
|
void |
setLinkType(LinkType linkType)
Deprecated.
Sets the type of links on tree items.
|
addComponent, allNodesCollapsed, allNodesExpanded, getChildAt, getChildCount, getModel, getModelObject, getNodeComponent, getParentNode, getTreeState, invalidateAll, isForceRebuildOnSelectionChange, isLeaf, isNodeExpanded, isRootLess, markNodeChildrenDirty, markNodeDirty, newTreeState, nodeChildren, nodeCollapsed, nodeExpanded, nodeSelected, nodeUnselected, onAfterRender, onBeforeAttach, onBeforeRender, onDetach, onTargetRespond, populateTreeItem, setModel, setModelObject, setRootLess, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, updateTree, updateTreenewMarkupSourcingStrategygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onComponentTag, onConfigure, onEvent, onInitialize, 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, wrappublic DefaultAbstractTree(String id)
id - The component idpublic DefaultAbstractTree(String id, IModel<? extends TreeModel> model)
id - The component idmodel - The tree modelpublic LinkType getLinkType()
public void setLinkType(LinkType linkType)
linkType - type of linksprotected ResourceReference getCSS()
protected ResourceReference getFolderClosed()
protected ResourceReference getFolderOpen()
protected ResourceReference getItem()
protected ResourceReference getNodeIcon(TreeNode node)
node - The nodeprotected Component newIndentation(MarkupContainer parent, String id, TreeNode node, int level)
parent - The component parentid - The component idnode - The tree node for which to create the indentation elementlevel - The current levelprotected MarkupContainer newJunctionImage(MarkupContainer parent, String id, TreeNode node)
parent - The component parentid - The component idnode - The tree nodeprotected Component newJunctionLink(MarkupContainer parent, String id, String imageId, TreeNode node)
parent - parent component of the linkid - wicket:id of the componentimageId - wicket:id of the image. this can be null, in that case image is not created. image
is supposed to be placed on the link (link is parent of image)node - tree node for which the link should be created.protected MarkupContainer newLink(MarkupContainer parent, String id, DefaultAbstractTree.ILinkCallback callback)
parent - The parent componentid - The component idcallback - The link call backprotected Component newNodeIcon(MarkupContainer parent, String id, TreeNode node)
getNodeIcon(TreeNode).parent - The parent componentid - The component idnode - The tree nodeprotected MarkupContainer newNodeLink(MarkupContainer parent, String id, TreeNode node)
parent - The parent componentid - The component idnode - The parent nodeprotected void onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node)
target - Request target - may be null on non-ajax callnode - Node for which this callback is relevantprotected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node)
target - Request target - may be null on non-ajax callnode - Node for which this this callback is fired.public void renderHead(IHeaderResponse response)
renderHead in interface IHeaderContributorrenderHead in class AbstractTreeCopyright © 2006–2015 Apache Software Foundation. All rights reserved.