public abstract class Perspective extends RenderPlugin<Void> implements ITitleDecorator
RenderService.ExtensionPoint
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_NAME |
static String |
CLUSTER_PARAMETERS |
static String |
FALLBACK_IMAGE_EXTENSION |
static String |
IMAGE_EXTENSION |
static String |
TITLE
Deprecated.
|
static String |
TITLE_KEY |
BEHAVIOR, children, CSS_ID, DEFAULT_LOCALE, EXTENSIONS_ID, FEEDBACK, MODEL_ID, SKIN_ID, VARIANT_ID, VISIBLE, WICKET_ID
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
log
Constructor and Description |
---|
Perspective(IPluginContext context,
IPluginConfig config) |
Perspective(IPluginContext context,
IPluginConfig config,
String eventId) |
Modifier and Type | Method and Description |
---|---|
org.apache.wicket.request.resource.ResourceReference |
getIcon(IconSize size)
Retrieve an icon to represent the decorated object.
|
org.apache.wicket.model.IModel<String> |
getTitle() |
String |
getTitleCssClass() |
protected void |
onActivated()
Hook called when the perspective is activated, i.e.
|
protected void |
onDeactivated()
Hook called when the perspective is deactivate, i.e.
|
protected void |
publishEvent(String name) |
void |
render(PluginRequestTarget target)
Called after user events and JCR events have been handled, but before
the rendering has started.
|
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
protected void |
setTitle(String title) |
protected String |
toImageName(String camelCaseString,
IconSize size,
String extension) |
newPlugin, newPlugin, onStart, onStop, 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
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, 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
getIcon
forEach, spliterator
@Deprecated public static final String TITLE
public static final String TITLE_KEY
public static final String CLUSTER_NAME
public static final String CLUSTER_PARAMETERS
public static final String IMAGE_EXTENSION
public static final String FALLBACK_IMAGE_EXTENSION
public Perspective(IPluginContext context, IPluginConfig config)
public Perspective(IPluginContext context, IPluginConfig config, String eventId)
public String getTitleCssClass()
public org.apache.wicket.model.IModel<String> getTitle()
getTitle
in interface ITitleDecorator
public org.apache.wicket.request.resource.ResourceReference getIcon(IconSize size)
ITitleDecorator
Consumers should use a default icon when none is returned. They should handle resizing icons when these are not of the specified size.
getIcon
in interface ITitleDecorator
protected void setTitle(String title)
public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
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<Void>
protected void onActivated()
protected void onDeactivated()
protected void publishEvent(String name)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.