public abstract class AbstractListPanel<PM,RM,DP extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider>
extends org.apache.wicket.markup.html.panel.Panel
Panel
that can represent Simple Lists.SortableDataProvider
is used to provide the List.Modifier and Type | Field and Description |
---|---|
protected int |
rows |
Constructor and Description |
---|
AbstractListPanel(String id,
org.apache.wicket.model.IModel<PM> model) |
Modifier and Type | Method and Description |
---|---|
Properties |
getAdminConfiguration() |
protected abstract Class |
getClassForOpenPage(org.apache.wicket.model.IModel<RM> rowModel)
Define the Class of the Page that is to open (on Link or Add new).
|
DP |
getCustomSortableDataProvider() |
protected abstract String |
getNameOfItem(org.apache.wicket.model.IModel<RM> rowModel)
Get the name of the link/list item for the row
|
protected abstract org.apache.wicket.PageParameters |
getPageParamsForNewItem()
Define the Parameters of the page to Open when an Item is Added.
|
protected abstract org.apache.wicket.PageParameters |
getPageParamsForOpenItem(org.apache.wicket.model.IModel<RM> rowModel)
Define the Parameters of the page to Open when an Item is selected.
|
protected abstract void |
initDataProviderInstance(org.apache.wicket.model.IModel<PM> model)
The Data provider may select list on the panel based on a criteria.
|
protected void |
modifyColumns(List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<?>> columns)
Can add new coloumns (in addition to ID & Name), can drop also from pre defined columns list etc.
|
void |
onInitialize() |
void |
setAdminConfiguration(Properties adminConfiguration) |
void |
setCustomSortableDataProvider(DP customSortableDataProvider) |
protected org.apache.wicket.Component |
wrapAddButton(org.apache.wicket.Component link,
int dataSize)
One can change & toggle visibility etc
|
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
public Properties getAdminConfiguration()
public void setAdminConfiguration(Properties adminConfiguration)
public DP getCustomSortableDataProvider()
public void setCustomSortableDataProvider(DP customSortableDataProvider)
protected abstract void initDataProviderInstance(org.apache.wicket.model.IModel<PM> model)
model
- as IModel
protected abstract org.apache.wicket.PageParameters getPageParamsForOpenItem(org.apache.wicket.model.IModel<RM> rowModel)
rowModel/itemModel
- as IModel
protected abstract org.apache.wicket.PageParameters getPageParamsForNewItem()
protected abstract Class getClassForOpenPage(org.apache.wicket.model.IModel<RM> rowModel)
rowModel/itemModel
- as IModel
protected abstract String getNameOfItem(org.apache.wicket.model.IModel<RM> rowModel)
rowModel/itemModel
- as IModel
protected void modifyColumns(List<org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<?>> columns)
columns
- as List of IColumn
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected org.apache.wicket.Component wrapAddButton(org.apache.wicket.Component link, int dataSize)
link
- Copyright © 2018. All rights reserved.