public class ProductCategoryPanel extends CategoryPanel<ProductReference> implements IAdminPanel
CategoryPanel
Modifier and Type | Class and Description |
---|---|
class |
ProductCategoryPanel.ProductTree |
expandedState, listeners, loadLeaves
Constructor and Description |
---|
ProductCategoryPanel(String id,
org.apache.wicket.model.IModel<ProductReference> model,
boolean showChildNodes) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.markup.html.tree.LinkTree |
createLinkTree(String id,
TreeModel treeModel)
One can intercept LinkTree Ajax requests via its
LinkTree.onNodeLinkClicked(java.lang.Object, org.apache.wicket.markup.html.tree.BaseTree, org.apache.wicket.ajax.AjaxRequestTarget) etc. |
protected List<ProductReference> |
getDataList(ProductReference rootNode)
Fetch the Data as a Data List.
|
org.apache.wicket.markup.html.panel.Panel |
getTargetUpdatePanel() |
protected void |
onNodeLinkClicked(Object node,
org.apache.wicket.markup.html.tree.BaseTree tree,
org.apache.wicket.ajax.AjaxRequestTarget target)
When a node is clicked in the Tree then this is called.
|
void |
setTargetUpdatePanel(ProductListingPanel targetUpdatePanel) |
addChangeListener, convertToTreeModel, createTreeModel, getListeners, getModel, getTree, isExpandedState, isLoadLeaves, modifyNode, notifyAllListeners, onInitialize, onInitialize, setExpandedState, setListeners, setLoadLeaves, setState
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public ProductCategoryPanel(String id, org.apache.wicket.model.IModel<ProductReference> model, boolean showChildNodes)
protected List<ProductReference> getDataList(ProductReference rootNode)
CategoryPanel
getDataList
in class CategoryPanel<ProductReference>
rootNode
- as T @nullable true (if root)protected org.apache.wicket.markup.html.tree.LinkTree createLinkTree(String id, TreeModel treeModel)
CategoryPanel
LinkTree.onNodeLinkClicked(java.lang.Object, org.apache.wicket.markup.html.tree.BaseTree, org.apache.wicket.ajax.AjaxRequestTarget)
etc.
Define custom/anon class so you can intercept Ajax requests.createLinkTree
in class CategoryPanel<ProductReference>
protected void onNodeLinkClicked(Object node, org.apache.wicket.markup.html.tree.BaseTree tree, org.apache.wicket.ajax.AjaxRequestTarget target)
node
- tree
- target
- public org.apache.wicket.markup.html.panel.Panel getTargetUpdatePanel()
public void setTargetUpdatePanel(ProductListingPanel targetUpdatePanel)
Copyright © 2018. All rights reserved.