public abstract class AbstractListingPlugin<T> extends RenderPlugin<T> implements ListDataTable.TableSelectionListener<javax.jcr.Node>
RenderService.ExtensionPoint
Modifier and Type | Field and Description |
---|---|
protected ListDataTable<javax.jcr.Node> |
dataTable |
BEHAVIOR, children, CSS_ID, DEFAULT_LOCALE, EXTENSIONS_ID, FEEDBACK, MODEL_ID, SKIN_ID, VARIANT_ID, VISIBLE, WICKET_ID
Constructor and Description |
---|
AbstractListingPlugin(IPluginContext context,
IPluginConfig config) |
Modifier and Type | Method and Description |
---|---|
protected ListDataTable<javax.jcr.Node> |
getListDataTable(String id,
TableDefinition<javax.jcr.Node> tableDefinition,
org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> dataProvider,
ListDataTable.TableSelectionListener<javax.jcr.Node> selectionListener,
boolean triState,
ListPagingDefinition pagingDefinition) |
protected org.apache.wicket.model.IModel<javax.jcr.Node> |
getSelectedModel() |
protected TableDefinition<javax.jcr.Node> |
getTableDefinition() |
protected boolean |
isOrderable() |
protected abstract org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> |
newDataProvider() |
protected ListDataTable<javax.jcr.Node> |
newListDataTable(String id,
TableDefinition<javax.jcr.Node> tableDefinition,
org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> dataProvider,
ListDataTable.TableSelectionListener<javax.jcr.Node> selectionListener,
boolean triState,
ListPagingDefinition pagingDefinition) |
protected abstract TableDefinition<javax.jcr.Node> |
newTableDefinition() |
void |
onModelChanged() |
protected void |
onSelectionChanged(org.apache.wicket.model.IModel<javax.jcr.Node> model) |
protected void |
onStop()
Called during the stop phase of the plugin.
|
void |
render(PluginRequestTarget target)
Called after user events and JCR events have been handled, but before
the rendering has started.
|
void |
selectionChanged(org.apache.wicket.model.IModel model) |
protected void |
setSelectedModel(org.apache.wicket.model.IModel<javax.jcr.Node> model) |
void |
updateSelection(org.apache.wicket.model.IModel<javax.jcr.Node> model) |
newPlugin, newPlugin, onStart, start, stop
createExtensionPoint
addExtensionPoint, bind, focus, getBundleName, getComponent, getDialogService, getId, getMarkupId, getModel, getModelObject, getObservable, getParentService, getPluginConfig, getPluginContext, getResourceBundleModel, getSession, getVariation, isActive, onAfterRender, onBeforeRender, onComponentTag, onComponentTagBody, onEvent, redraw, removeExtensionPoint, setDefaultModel, setModel, setModelObject, unbind, updateModel
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onConfigure, onDetach, onEvent, onInitialize, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected ListDataTable<javax.jcr.Node> dataTable
public AbstractListingPlugin(IPluginContext context, IPluginConfig config)
protected org.apache.wicket.model.IModel<javax.jcr.Node> getSelectedModel()
protected void setSelectedModel(org.apache.wicket.model.IModel<javax.jcr.Node> model)
protected ListDataTable<javax.jcr.Node> getListDataTable(String id, TableDefinition<javax.jcr.Node> tableDefinition, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> dataProvider, ListDataTable.TableSelectionListener<javax.jcr.Node> selectionListener, boolean triState, ListPagingDefinition pagingDefinition)
protected ListDataTable<javax.jcr.Node> newListDataTable(String id, TableDefinition<javax.jcr.Node> tableDefinition, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> dataProvider, ListDataTable.TableSelectionListener<javax.jcr.Node> selectionListener, boolean triState, ListPagingDefinition pagingDefinition)
protected TableDefinition<javax.jcr.Node> getTableDefinition()
protected abstract org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<javax.jcr.Node,String> newDataProvider()
protected abstract TableDefinition<javax.jcr.Node> newTableDefinition()
public void selectionChanged(org.apache.wicket.model.IModel model)
selectionChanged
in interface ListDataTable.TableSelectionListener<javax.jcr.Node>
public void updateSelection(org.apache.wicket.model.IModel<javax.jcr.Node> model)
protected void onSelectionChanged(org.apache.wicket.model.IModel<javax.jcr.Node> model)
public void onModelChanged()
onModelChanged
in class org.apache.wicket.Component
public void render(PluginRequestTarget target)
AbstractRenderService
Component
s with
the request target to enlist in the rendering phase.
Implementations that use extensions must call the same method on those.
render
in interface IRenderService
render
in class RenderPlugin<T>
protected boolean isOrderable()
protected void onStop()
RenderPlugin
NOTE* If you override this, you *must* call super.onStop() within your implementation.
onStop
in class RenderPlugin<T>
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.