public class TemplateDetailsPanel<T extends Serializable> extends AdminPanel implements ChangeListener<T>
File
or ContentDescriber
etc.
The actual implementation will define type specific detailsModifier and Type | Field and Description |
---|---|
protected AuthorizationModule<Void> |
authorizationModule |
adminConfiguration
Constructor and Description |
---|
TemplateDetailsPanel(String id,
org.apache.wicket.model.IModel<ContentDescriber> model) |
Modifier and Type | Method and Description |
---|---|
void |
audit(T template,
String message) |
protected org.apache.wicket.markup.html.link.Link |
getDocumentViewerLink(String name,
org.apache.wicket.markup.html.panel.FeedbackPanel feedback,
Map<String,Object> params) |
void |
onChange(ChangeGenerator<T> changeGenerator,
T modelObject)
On selecting a Template from the listing/tree
|
void |
onInitialize()
Allow panel to be updated in Ajax situations (on re-Init)
|
protected void |
populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container,
org.apache.wicket.model.IModel<T> model,
org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
Define Extra Buttons if needed by defining List of
FacetMeta is Spring bean contentExtraActions & contentFacetExtraActions |
getConfigProperty, getModuleForPage, headerMeta, renderHead
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
protected AuthorizationModule<Void> authorizationModule
public TemplateDetailsPanel(String id, org.apache.wicket.model.IModel<ContentDescriber> model)
protected org.apache.wicket.markup.html.link.Link getDocumentViewerLink(String name, org.apache.wicket.markup.html.panel.FeedbackPanel feedback, Map<String,Object> params)
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container, org.apache.wicket.model.IModel<T> model, org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
FacetMeta
is Spring bean contentExtraActions & contentFacetExtraActionscontainer
- as WebMarkupContainer
as Container that is effected as a result of ActioncontentFacet
- as IModelitem
- as ListItem
for FacetMeta
typepublic void onChange(ChangeGenerator<T> changeGenerator, T modelObject)
onChange
in interface ChangeListener<T extends Serializable>
changeGenerator
- modelObject
- Copyright © 2018. All rights reserved.