@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_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 |
|---|
DefaultAbstractTree(String id)
Deprecated.
Tree constructor.
|
DefaultAbstractTree(String id,
org.apache.wicket.model.IModel<? extends TreeModel> model)
Deprecated.
Tree constructor.
|
DefaultAbstractTree(String id,
TreeModel model)
Deprecated.
Tree constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.request.resource.ResourceReference |
getCSS()
Deprecated.
Returns the resource reference of default stylesheet.
|
protected org.apache.wicket.request.resource.ResourceReference |
getFolderClosed()
Deprecated.
Returns the resource reference of default closed tree folder.
|
protected org.apache.wicket.request.resource.ResourceReference |
getFolderOpen()
Deprecated.
Returns the resource reference of default open tree folder.
|
protected org.apache.wicket.request.resource.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 org.apache.wicket.request.resource.ResourceReference |
getNodeIcon(TreeNode node)
Deprecated.
Returns the resource reference for icon of specified tree node.
|
protected org.apache.wicket.Component |
newIndentation(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node,
int level)
Deprecated.
Creates the indentation element.
|
protected org.apache.wicket.MarkupContainer |
newJunctionImage(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates an image placed on junction link.
|
protected org.apache.wicket.Component |
newJunctionLink(org.apache.wicket.MarkupContainer parent,
String id,
String imageId,
TreeNode node)
Deprecated.
Creates the junction link for given node.
|
protected org.apache.wicket.MarkupContainer |
newLink(org.apache.wicket.MarkupContainer parent,
String id,
DefaultAbstractTree.ILinkCallback callback)
Deprecated.
Creates a link of type specified by current linkType.
|
protected org.apache.wicket.Component |
newNodeIcon(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates the icon for current node.
|
protected org.apache.wicket.MarkupContainer |
newNodeLink(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
Deprecated.
Creates a link that can be used to select / deselect the specified node.
|
protected void |
onJunctionLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
TreeNode node)
Deprecated.
Callback function called after user clicked on an junction link.
|
protected void |
onNodeLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
TreeNode node)
Deprecated.
This callback method is called after user has selected / deselected the given node.
|
void |
renderHead(org.apache.wicket.markup.head.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, updateTreegetRegionMarkup, newMarkupSourcingStrategygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onInitialize, 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, 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, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, org.apache.wicket.model.IModel<? extends TreeModel> model)
id - The component idmodel - The tree modelpublic LinkType getLinkType()
public void setLinkType(LinkType linkType)
linkType - type of linksprotected org.apache.wicket.request.resource.ResourceReference getCSS()
protected org.apache.wicket.request.resource.ResourceReference getFolderClosed()
protected org.apache.wicket.request.resource.ResourceReference getFolderOpen()
protected org.apache.wicket.request.resource.ResourceReference getItem()
protected org.apache.wicket.request.resource.ResourceReference getNodeIcon(TreeNode node)
node - The nodeprotected org.apache.wicket.Component newIndentation(org.apache.wicket.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 org.apache.wicket.MarkupContainer newJunctionImage(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
parent - The component parentid - The component idnode - The tree nodeprotected org.apache.wicket.Component newJunctionLink(org.apache.wicket.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 org.apache.wicket.MarkupContainer newLink(org.apache.wicket.MarkupContainer parent,
String id,
DefaultAbstractTree.ILinkCallback callback)
parent - The parent componentid - The component idcallback - The link call backprotected org.apache.wicket.Component newNodeIcon(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
getNodeIcon(TreeNode).parent - The parent componentid - The component idnode - The tree nodeprotected org.apache.wicket.MarkupContainer newNodeLink(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node)
parent - The parent componentid - The component idnode - The parent nodeprotected void onJunctionLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
TreeNode node)
target - Request target - may be null on non-ajax callnode - Node for which this callback is relevantprotected void onNodeLinkClicked(org.apache.wicket.ajax.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(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class AbstractTreeCopyright © 2016. All Rights Reserved.