public class ProductDetailsPanel<P extends Product> extends AdminPanel
| Modifier and Type | Class and Description |
|---|---|
static class |
ProductDetailsPanel.ThisUIOperation |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_TEMPLATE_BEAN_NAME_KEY |
static String |
RESOURCE_BASE_URL_KEY |
adminConfiguration| Constructor and Description |
|---|
ProductDetailsPanel(String id,
org.apache.wicket.model.IModel<Product> model) |
| Modifier and Type | Method and Description |
|---|---|
protected P |
getEntity(P existingProduct,
String entityClassChosen) |
FlowStatus |
getOperation() |
Product |
getParentProduct() |
protected ProductService<P> |
getProductService() |
protected boolean |
getStatelessHint() |
ProductListingPanel |
getTargetUpdatePanel() |
protected ProductTemplate<TemplatePanel> |
getTemplate() |
protected void |
onAjaxClone(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) |
protected void |
onAjaxConvertProductToCategory(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) |
protected void |
onAjaxDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) |
protected void |
onAjaxDeleteHierarchy(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) |
protected void |
onAjaxSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
Called by the Ajax Save buttons
|
void |
onInitialize()
Allow panel to be updated in Ajax situations (on re-Init)
|
protected void |
populateBulkButtonItem(org.apache.wicket.model.IModel<P> productModel,
org.apache.wicket.markup.html.list.ListItem<FacetMeta> item,
org.apache.wicket.markup.html.form.Form form)
Bulk buttons override option for more cool buttons.
|
void |
reset()
Allow reset of State before
onInitialize() is called |
void |
setParentProduct(P parentProduct) |
void |
setTargetUpdatePanel(ProductListingPanel targetUpdatePanel) |
protected void |
updateRelatedPanels(org.apache.wicket.ajax.AjaxRequestTarget target)
Update/Refresh all related panels including the panel making the updates
|
void |
updateState(Long productId,
Long parentProductId,
FlowStatus operation,
boolean updateMayImpactListing) |
getConfigProperty, getModuleForPage, headerMeta, renderHeadonComponentTag, onComponentTagBody, renderHeadnewHeaderPartContainer, renderHeadFromAssociatedMarkupFilegetMarkupType, getWebPage, getWebRequestadd, 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, visitChildrenadd, 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, 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, wrapprotected static final String DEFAULT_TEMPLATE_BEAN_NAME_KEY
public static final String RESOURCE_BASE_URL_KEY
protected ProductService<P> getProductService()
protected ProductTemplate<TemplatePanel> getTemplate()
public void reset()
onInitialize() is calledpublic void onInitialize()
onInitialize in class org.apache.wicket.Componentprotected void populateBulkButtonItem(org.apache.wicket.model.IModel<P> productModel, org.apache.wicket.markup.html.list.ListItem<FacetMeta> item, org.apache.wicket.markup.html.form.Form form)
FacetMeta.getSubmitTransformer()
and the result is synchronously returned/added as String in the listing FeedbackPanel.protected P getEntity(P existingProduct, String entityClassChosen) throws Exception
Exceptionprotected void onAjaxSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void onAjaxDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void onAjaxDeleteHierarchy(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void onAjaxConvertProductToCategory(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void onAjaxClone(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void updateRelatedPanels(org.apache.wicket.ajax.AjaxRequestTarget target)
public ProductListingPanel getTargetUpdatePanel()
public void setTargetUpdatePanel(ProductListingPanel targetUpdatePanel)
public void updateState(Long productId, Long parentProductId, FlowStatus operation, boolean updateMayImpactListing)
id - of componentprodId - - Id of the product to be popped up (@nullable true - For new product)parentProdId - - Id of its parent category (@nullable true)op - as com.neurosys.products.admin.ProductForm.FlowStatusupdateMayImpactListing - as boolean. if true it implies that an update to the product may impact listing ahd hence may trigger a refresh , false means an uppdate should not attempt to refresh any calling panels. See updateRelatedPanels(AjaxRequestTarget)public FlowStatus getOperation()
public Product getParentProduct()
public void setParentProduct(P parentProduct)
protected boolean getStatelessHint()
getStatelessHint in class org.apache.wicket.ComponentCopyright © 2018. All rights reserved.