T - tree model object typeI - node model object typepublic abstract class TreePanel<T extends TreeModel,I extends TreeNode>
extends org.apache.wicket.markup.html.panel.Panel
| Modifier and Type | Class and Description |
|---|---|
static interface |
TreePanel.ILinkCallback
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 |
|---|
TreePanel(String id,
org.apache.wicket.model.IModel<I> model,
int level)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.model.IModel<I> |
getDefaultNodeModel() |
protected abstract Icon |
getIcon(org.apache.wicket.model.IModel<I> model)
Return the icon for this node or null if no icon should be used.
|
IconImage |
getIconComponent()
Returns the icon component instance.
|
protected org.apache.wicket.Component |
newJunctionLink(org.apache.wicket.MarkupContainer parent,
String id,
Object node)
Creates the junction link for given node.
|
org.apache.wicket.MarkupContainer |
newLink(String id,
TreePanel.ILinkCallback callback)
Creates a link of type specified by current linkType.
|
protected abstract org.apache.wicket.Component |
newNodeComponent(String id,
org.apache.wicket.model.IModel<I> model)
Creates a new component for the given TreeNode.
|
protected void |
onInitialize() |
protected abstract void |
onJunctionLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget target,
Object node)
Callback function called after user clicked on an junction link.
|
getRegionMarkup, 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, onDetach, 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, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, 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, wrapprotected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic IconImage getIconComponent()
protected abstract Icon getIcon(org.apache.wicket.model.IModel<I> model)
model - model for the TreeNodeprotected abstract org.apache.wicket.Component newNodeComponent(String id, org.apache.wicket.model.IModel<I> model)
id - component IDmodel - model that returns the nodeprotected org.apache.wicket.model.IModel<I> getDefaultNodeModel()
protected 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.public org.apache.wicket.MarkupContainer newLink(String id, TreePanel.ILinkCallback callback)
id - The component idcallback - The link call backprotected abstract 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 relevantCopyright © 2015. All rights reserved.