@Deprecated public abstract class BaseTree extends AbstractTree
newNodeComponent(String, IModel) that needs to be
overridden.| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseTree.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 |
|---|
BaseTree(String id)
Deprecated.
Construct.
|
BaseTree(String id,
org.apache.wicket.model.IModel<? extends TreeModel> model)
Deprecated.
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.request.resource.ResourceReference |
getCSS()
Deprecated.
Returns the stylesheet reference
|
protected String |
getItemClass(Object node)
Deprecated.
|
LinkType |
getLinkType()
Deprecated.
Returns the current type of links on tree items.
|
protected String |
getSelectedClass()
Deprecated.
Returns the class name that will be added to row's CSS class for selected rows
|
protected boolean |
isForceRebuildOnSelectionChange()
Deprecated.
Determines whether the TreeNode needs to be rebuilt if it is selected or deselected
|
protected org.apache.wicket.Component |
newJunctionLink(org.apache.wicket.MarkupContainer parent,
String id,
Object node)
Deprecated.
Creates the junction link for given node.
|
org.apache.wicket.MarkupContainer |
newLink(String id,
BaseTree.ILinkCallback callback)
Deprecated.
Creates a link of type specified by current linkType.
|
protected abstract org.apache.wicket.Component |
newNodeComponent(String id,
org.apache.wicket.model.IModel<Object> model)
Deprecated.
Creates a new component for the given TreeNode.
|
protected void |
onJunctionLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
Object node)
Deprecated.
Callback function called after user clicked on an junction link.
|
protected void |
populateTreeItem(org.apache.wicket.markup.html.WebMarkupContainer item,
int level)
Deprecated.
This method is called after creating every TreeItem.
|
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, isLeaf, isNodeExpanded, isRootLess, markNodeChildrenDirty, markNodeDirty, newTreeState, nodeChildren, nodeCollapsed, nodeExpanded, nodeSelected, nodeUnselected, onAfterRender, onBeforeAttach, onBeforeRender, onDetach, onTargetRespond, 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 BaseTree(String id)
id - protected org.apache.wicket.request.resource.ResourceReference getCSS()
protected void populateTreeItem(org.apache.wicket.markup.html.WebMarkupContainer item,
int level)
AbstractTreepopulateTreeItem in class AbstractTreeitem - newly created tree item. The node can be obtained as item.getModelObject()level - how deep the component is in tree hierarchy (0 for root item)AbstractTree.populateTreeItem(WebMarkupContainer,
int)protected String getSelectedClass()
protected abstract org.apache.wicket.Component newNodeComponent(String id, org.apache.wicket.model.IModel<Object> model)
id - component IDmodel - model that returns the nodeprotected org.apache.wicket.Component newJunctionLink(org.apache.wicket.MarkupContainer parent,
String id,
Object node)
parent - parent component of the linkid - wicket:id of the componentnode - tree node for which the link should be created.protected void onJunctionLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
Object node)
target - Request target - may be null on non-ajax callnode - Node for which this callback is relevantpublic org.apache.wicket.MarkupContainer newLink(String id, BaseTree.ILinkCallback callback)
id - The component idcallback - The link call back. null is passed for its onClick(AjaxRequestTarget) for
LinkType.REGULAR and eventually for LinkType.AJAX_FALLBACK.public LinkType getLinkType()
public void setLinkType(LinkType linkType)
linkType - type of linksprotected boolean isForceRebuildOnSelectionChange()
AbstractTreeisForceRebuildOnSelectionChange in class AbstractTreeAbstractTree.isForceRebuildOnSelectionChange()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.