public class RenderPlugin<T> extends RenderService<T> implements IPlugin
IRenderService
,
tracks extensions, etcetera. See AbstractRenderService
for a description of the
configuration options.
In addition, it has simple plugin-management capabilities.
RenderService.ExtensionPoint
BEHAVIOR, children, CSS_ID, DEFAULT_LOCALE, EXTENSIONS_ID, FEEDBACK, MODEL_ID, SKIN_ID, VARIANT_ID, VISIBLE, WICKET_ID
Constructor and Description |
---|
RenderPlugin(IPluginContext context,
IPluginConfig config) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.Component |
newPlugin(String id,
IPluginConfig config)
Create a child Component with a specified id and configuration.
|
protected org.apache.wicket.Component |
newPlugin(String id,
String name) |
protected void |
onStart()
Called during the start phase of the plugin.
|
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 |
start()
This method can be implemented by plugins to delay part of the initialization until
subclasses have finished their construction.
|
void |
stop()
Release references to external resources.
|
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
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, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, 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
public RenderPlugin(IPluginContext context, IPluginConfig config)
public final void start()
IPlugin
public final void stop()
IPlugin
protected void onStart()
NOTE* If you override this, you *must* call super.onStop() within your implementation.
protected void onStop()
NOTE* If you override this, you *must* call super.onStop() within your implementation.
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 AbstractRenderService<T>
protected org.apache.wicket.Component newPlugin(String id, IPluginConfig config)
Only one plugin can be created with a specific component id. When a plugin is created for an id that was already used before, the old plugin is stopped.
The created plugin inherits configuration from this render plugin.
id
- the Wicket id of the Component
config
- IRenderService
under its "wicket.id" key, or null when the plugin
does not.Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.