public abstract class ConfigurableFacetMetaActionContainer<T,PARAM_META>
extends org.apache.wicket.markup.html.WebMarkupContainer
WebMarkupContainer that can accept Authorizable list FacetMeta and add it automatically.<div wicket:id="containerId"> <wicket:container wicket:id="listViewId"> This part is defined by components added in#populateItem(Object, ListItem). One can use aScriptableFacetMetaAjaxButtonhere.<input type="button" wicket:id="button" /> </wicket:container> </div>
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizationModule<Void> |
authorizationModule |
| Constructor and Description |
|---|
ConfigurableFacetMetaActionContainer(String containerId,
String listViewId,
org.apache.wicket.model.IModel<T> model) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.markup.html.list.ListView<PARAM_META> |
defineActionItems(String componentId)
If any definitions are authorized for user send a
ListView of FacetMeta or return null |
protected abstract List<PARAM_META> |
defineFacets()
Define list of actions
|
protected abstract Collection<Authorization> |
defineUserAuthorizations(User user)
Get the authorizations for user for the
Authorizable module/section this component belongs to. |
int |
getFinalButtonCount()
Due to authorization etc All buttons passed maynot be rendered so keep count of of many were rendered finally
|
protected abstract void |
populateItem(org.apache.wicket.markup.html.list.ListItem<PARAM_META> item)
Populate Item.
|
void |
setFinalButtonCount(int finalButtonCount)
Due to authorization etc All buttons passed maynot be rendered so keep count of of many were rendered finally
|
getMarkupType, getWebPage, getWebRequestadd, 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, 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, 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, wrapprotected AuthorizationModule<Void> authorizationModule
protected org.apache.wicket.markup.html.list.ListView<PARAM_META> defineActionItems(String componentId) throws ClassCastException, org.springframework.beans.factory.NoSuchBeanDefinitionException
ListView of FacetMeta or return nullspringBeanName - that will represent a List of FacetMetaselectedList - as List of selected items in the ListingcomponentId - for the ListView if anyClassCastExceptionorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionprotected abstract List<PARAM_META> defineFacets()
protected abstract Collection<Authorization> defineUserAuthorizations(User user)
Authorizable module/section this component belongs to.
user - as UserCollection of Authorization @nullable trueprotected abstract void populateItem(org.apache.wicket.markup.html.list.ListItem<PARAM_META> item)
Component.getDefaultModel() for the common input to all the Actionsitem - as ListItempublic int getFinalButtonCount()
public void setFinalButtonCount(int finalButtonCount)
Copyright © 2018. All rights reserved.