public class DocumentManagerPanel extends ResourceManagerPanel<File> implements ChangeListener<File>, IAdminPanel
WebFileListView
, FileUploadForm
, & SubFolderViewPanel
FacetMeta
definition for the entity that invoked the Doc manager.Template
definition for the entity that invoked the Doc manager.ResourceManagerPanel.ResourceUploadForm<T>
Modifier and Type | Field and Description |
---|---|
protected WebFileListView |
fileListView |
protected FileUploadWrapper |
resourceUploader |
Constructor and Description |
---|
DocumentManagerPanel(String id) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.markup.html.WebMarkupContainer |
defineListConatiner()
The List cane be defined in any specified view container.
|
protected ResourceListView<File> |
getResourceListView(org.apache.wicket.markup.html.WebMarkupContainer listContainer,
List<? extends File> list)
Override to specify which type of
ResourceListView will be used to render the resources |
protected CategoryPanel |
getResourceSourceSelector()
This is the source selector for the Document list view.
|
protected ResourceManagerPanel.ResourceUploadForm |
getResourceUploadForm()
Override to do nothing if you dont need a progress bar, or even something fancier based on your needs
|
void |
onChange(ChangeGenerator<File> changeGenerator,
File modelObject) |
void |
onInitialize() |
protected void |
preInitialize()
ResourceManagerPanel.onInitialize() calles super.onInitialize and some other methods. |
protected void |
setPreSetConfigs()
Set the document manager with attributes from Template & the facet,
If the information is given as page param(s) templateName and facetName
|
getFeedbackPanel, setFeedbackPanel
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
@SpringBean protected transient FileUploadWrapper resourceUploader
protected WebFileListView fileListView
public DocumentManagerPanel(String id)
public void onInitialize()
onInitialize
in class ResourceManagerPanel<File>
protected void preInitialize()
ResourceManagerPanel
ResourceManagerPanel.onInitialize()
calles super.onInitialize and some other methods.
Override if we want to pre-initialize data model before those other methods are called.preInitialize
in class ResourceManagerPanel<File>
protected void setPreSetConfigs()
protected ResourceManagerPanel.ResourceUploadForm getResourceUploadForm()
getResourceUploadForm
in class ResourceManagerPanel<File>
protected ResourceListView<File> getResourceListView(org.apache.wicket.markup.html.WebMarkupContainer listContainer, List<? extends File> list)
ResourceManagerPanel
ResourceListView
will be used to render the resourcesgetResourceListView
in class ResourceManagerPanel<File>
listContainer
- as WebMarkupContainer
to which the ResourceListView
will be added directly or indirectly.
Indirectly implies some additional wrapper elements maybe added. Like a CheckGroup
protected CategoryPanel getResourceSourceSelector()
getResourceSourceSelector
in class ResourceManagerPanel<File>
public void onChange(ChangeGenerator<File> changeGenerator, File modelObject)
onChange
in interface ChangeListener<File>
changeGenerator
- as the generator that caused the change. Specially useful if the Listener is subscribing to multiple ChangeGenerator
smodelObject
- as the model change communicatedprotected org.apache.wicket.markup.html.WebMarkupContainer defineListConatiner()
ResourceManagerPanel
defineListConatiner
in class ResourceManagerPanel<File>
Copyright © 2018. All rights reserved.