public abstract class ResourceListView<T>
extends org.apache.wicket.markup.html.list.ListView<T>
Modifier and Type | Class and Description |
---|---|
static class |
ResourceListView.ViewContext
Additional params for Display
|
Modifier and Type | Field and Description |
---|---|
protected ResourceListView.ViewContext |
context |
protected org.apache.wicket.markup.html.panel.FeedbackPanel |
feedbackPanel |
Constructor and Description |
---|
ResourceListView(String id,
List<? extends T> list,
ResourceListView.ViewContext context,
org.apache.wicket.markup.html.form.CheckGroup bulkSelection) |
Modifier and Type | Method and Description |
---|---|
abstract String |
getAbsolutePath(T resource) |
abstract String |
getClassForResourceType(T resource)
Return a CSS class name to represent the resource type (if any exists)
|
ResourceListView.ViewContext |
getContext() |
abstract String |
getDate(T resource) |
abstract String |
getName(T resource) |
abstract String |
getRelativePath(T resource)
The relative path so it can be viewed from the outside world.
|
abstract Float |
getSizeKB(T resource) |
abstract String |
getStorageRelativePath(T resource)
This path is a path that is indicative of where it is stored on the system
relative to some common reference that sis configured.
|
abstract boolean |
isResourceImageType(T resource) |
void |
onInitialize() |
protected void |
populateItem(org.apache.wicket.markup.html.list.ListItem<T> item) |
protected void |
processThumbnailLink(T resource,
GenericLink thumbNailLink,
String relativeWebPath,
Float size) |
abstract void |
remove(T resource) |
void |
setContext(ResourceListView.ViewContext context) |
ResourceListView |
setFeedbackPanel(org.apache.wicket.markup.html.panel.FeedbackPanel feedbackPanel) |
getList, getListItemModel, getModel, getModelObject, getReuseItems, getStartIndex, getViewSize, iterator, moveDownLink, moveUpLink, newItem, onBeginPopulateItem, onPopulate, removeLink, renderChild, renderItem, renderIterator, setList, setModel, setModelObject, setReuseItems, setStartIndex, setViewSize
onBeforeRender, onRender
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, newMarkupResourceStream, onComponentTagBody, 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, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, 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, wrap
protected transient org.apache.wicket.markup.html.panel.FeedbackPanel feedbackPanel
protected ResourceListView.ViewContext context
public ResourceListView(String id, List<? extends T> list, ResourceListView.ViewContext context, org.apache.wicket.markup.html.form.CheckGroup bulkSelection)
public ResourceListView setFeedbackPanel(org.apache.wicket.markup.html.panel.FeedbackPanel feedbackPanel)
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void processThumbnailLink(T resource, GenericLink thumbNailLink, String relativeWebPath, Float size)
protected void populateItem(org.apache.wicket.markup.html.list.ListItem<T> item)
populateItem
in class org.apache.wicket.markup.html.list.ListView<T>
public abstract boolean isResourceImageType(T resource)
public abstract String getClassForResourceType(T resource)
resource
- public abstract String getRelativePath(T resource)
public abstract String getStorageRelativePath(T resource)
public abstract void remove(T resource)
public ResourceListView.ViewContext getContext()
public void setContext(ResourceListView.ViewContext context)
Copyright © 2018. All rights reserved.