public class ParentCategoriesContainer<P extends Product>
extends org.apache.wicket.markup.html.WebMarkupContainer
Product
Constructor and Description |
---|
ParentCategoriesContainer(String id,
org.apache.wicket.model.IModel<P> containerModel,
ProductService<Product> service,
boolean isEditAuthorized) |
Modifier and Type | Method and Description |
---|---|
Integer |
getSequenceBeforeSubmit() |
void |
onMove(P product,
Product parent,
Integer sequence,
org.apache.wicket.model.IModel<P> containerModel,
ProductService service)
When a Move operation is attempted, with a selected parent in the hierarchy; it also can handle ordering
by virtue of the service method supporting it.
|
void |
onReSequence(P product,
Product parent,
Integer sequence,
org.apache.wicket.model.IModel<P> containerModel,
ProductService service)
When we want to change Order, only
|
void |
setSequenceBeforeSubmit(Integer sequenceBeforeSubmit) |
protected void |
updateRelatedPanels(org.apache.wicket.ajax.AjaxRequestTarget target,
P product,
Product parent)
Update/Refresh all related panels; ProductDetails & list the Listing Panel
|
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, 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, onComponentTag, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, 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 ParentCategoriesContainer(String id, org.apache.wicket.model.IModel<P> containerModel, ProductService<Product> service, boolean isEditAuthorized)
id
- as id of the COmponentcontainerModel
- as the Model passed by the container calling this Component. Changes may propogate back to the parent container model if there are MOVE operations performed.service
- isEditAuthorized
- containerModel
- public void onMove(P product, Product parent, Integer sequence, org.apache.wicket.model.IModel<P> containerModel, ProductService service)
public void onReSequence(P product, Product parent, Integer sequence, org.apache.wicket.model.IModel<P> containerModel, ProductService service)
sequence
- protected void updateRelatedPanels(org.apache.wicket.ajax.AjaxRequestTarget target, P product, Product parent)
public Integer getSequenceBeforeSubmit()
public void setSequenceBeforeSubmit(Integer sequenceBeforeSubmit)
Copyright © 2018. All rights reserved.