public abstract class ListViewTemplatePanel<T extends Template<TemplatePanel>,M extends Serializable> extends TemplatePanel<T,M>
Template
to create the UI component for the template using a ListView
ListView
adaptation of TemplatePanel
Modifier and Type | Field and Description |
---|---|
protected AuthorizationModule<Void> |
authorizationModule |
template
Constructor and Description |
---|
ListViewTemplatePanel(String id,
org.apache.wicket.model.IModel<M> model,
T template) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAuthorizationToSave(org.apache.wicket.Component coreEntityDataField)
In Save operations check if user has authorization to save
|
protected abstract org.apache.wicket.Component[] |
getComponents(M modelObject,
org.apache.wicket.markup.html.list.ListItem<MetaItem> item)
Get a component
|
protected org.apache.wicket.Component[] |
getComponents(M modelObject,
MetaItem item)
Called by and added to page my processItemList().
An entity can define native field UI support using Type . |
protected String |
getListComponentName() |
protected boolean |
isAuthorized(FacetMeta facet,
Map<String,Field> fieldMap,
ContentType... filterContentType)
Add Authorization filter logic over super
TemplatePanel.addFacetToMetaItems(FacetMeta, Map, ContentType...) |
protected void |
processItemList(org.apache.wicket.MarkupContainer container,
M modelObject,
List<MetaItem> items)
A list sorting, pre-processing, filtering etc can be performed here.
|
protected void |
reorder(List<MetaItem> items)
Re-Order the items of the passed
List
This implementation does nothing. |
addFacetToMetaItems, extractMetaItems, filter, filterClasses, getContainer, getDataRelatedComponents, getTemplate, iterateAndAddFacetsToPage, onInitialize, setTemplate
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
protected boolean isAuthorized(FacetMeta facet, Map<String,Field> fieldMap, ContentType... filterContentType)
TemplatePanel.addFacetToMetaItems(FacetMeta, Map, ContentType...)
isAuthorized
in class TemplatePanel<T extends Template<TemplatePanel>,M extends Serializable>
protected void checkAuthorizationToSave(org.apache.wicket.Component coreEntityDataField) throws AuthorizationException
AuthorizationException
protected String getListComponentName()
protected void reorder(List<MetaItem> items)
List
protected void processItemList(org.apache.wicket.MarkupContainer container, M modelObject, List<MetaItem> items)
TemplatePanel
processItemList
in class TemplatePanel<T extends Template<TemplatePanel>,M extends Serializable>
container
- @nullable false (expects a valid container from TemplatePanel.iterateAndAddFacetsToPage(MarkupContainer, Serializable, Collection)
)protected final org.apache.wicket.Component[] getComponents(M modelObject, MetaItem item)
TemplatePanel
Type
.
All fields that are annotated with this will be processed also by this method. If a Facet and field share the same name then both will not be null.
getComponents
in class TemplatePanel<T extends Template<TemplatePanel>,M extends Serializable>
item
- as MetaItem
protected abstract org.apache.wicket.Component[] getComponents(M modelObject, org.apache.wicket.markup.html.list.ListItem<MetaItem> item)
modelObject
- as Mitem
- as ListItem
Copyright © 2018. All rights reserved.