public class LabelIconPanel extends Panel
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 |
|---|
LabelIconPanel(String id,
IModel<Object> model,
BaseTree tree)
Constructs the panel.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComponents(IModel<Object> model,
BaseTree tree)
Adds the icon and content components to the panel.
|
protected ResourceReference |
getImageResourceReference(BaseTree tree,
Object node)
Returns the image resource reference based on the give tree node type.
|
protected ResourceReference |
getResourceFolderClosed(Object node)
Returns resource reference for closed folder icon.
|
protected ResourceReference |
getResourceFolderOpen(Object node)
Returns resource reference for open folder icon.
|
protected ResourceReference |
getResourceItemLeaf(Object node)
Returns resource reference for a leaf icon.
|
protected Component |
newContentComponent(String componentId,
BaseTree tree,
IModel<?> model)
Creates the content component (label in this case) for the node
|
protected Component |
newImageComponent(String componentId,
BaseTree tree,
IModel<Object> model)
Creates the icon component for the node
|
protected IModel<Object> |
wrapNodeModel(IModel<Object> nodeModel)
Optional method for wrapping (creating an intermediate model) for the tree node model
|
newMarkupSourcingStrategygetWebPage, 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, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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 addComponents(IModel<Object> model, BaseTree tree)
model - model that can be used to retrieve the TreeNodetree - protected Component newImageComponent(String componentId, BaseTree tree, IModel<Object> model)
componentId - tree - model - protected Component newContentComponent(String componentId, BaseTree tree, IModel<?> model)
componentId - tree - model - protected ResourceReference getImageResourceReference(BaseTree tree, Object node)
tree - node - protected IModel<Object> wrapNodeModel(IModel<Object> nodeModel)
nodeModel - protected ResourceReference getResourceFolderClosed(Object node)
node - protected ResourceReference getResourceFolderOpen(Object node)
node - protected ResourceReference getResourceItemLeaf(Object node)
node - Copyright © 2006–2015 Apache Software Foundation. All rights reserved.