public abstract class HippoIcon
extends org.apache.wicket.markup.html.panel.Panel
Modifier and Type | Method and Description |
---|---|
abstract void |
addCssClass(String cssClass)
Adds a CSS class to the top-level element of the rendered icon.
|
static HippoIcon |
copy(HippoIcon icon,
String newId)
Renders a copy of the given icon, with a different Wicket ID.
|
static HippoIcon |
fromResource(String id,
org.apache.wicket.request.resource.ResourceReference reference)
Renders an icon stored in a resource.
|
static HippoIcon |
fromResource(String id,
org.apache.wicket.request.resource.ResourceReference reference,
IconSize size)
Renders an icon stored in a resource, including 'width' and 'height' attributes.
|
static HippoIcon |
fromResource(String id,
org.apache.wicket.request.resource.ResourceReference reference,
int width,
int height)
Renders an icon stored in a resource, including 'width' and 'height' attributes.
|
static HippoIcon |
fromResourceModel(String id,
org.apache.wicket.model.IModel<org.apache.wicket.request.resource.ResourceReference> model)
Renders an icon stored in a resource which is referenced by a Wicket model.
|
static HippoIcon |
fromSprite(String id,
Icon icon)
Renders a hippo icon of size
IconSize.M via a reference to the icon sprite. |
static HippoIcon |
fromSprite(String id,
Icon icon,
IconSize size)
Renders a hippo icon via a reference to the icon sprite.
|
static HippoIcon |
fromSprite(String id,
org.apache.wicket.model.IModel<Icon> model)
Renders a hippo icon of size
IconSize.M via a reference to the icon sprite. |
static HippoIcon |
fromSprite(String id,
org.apache.wicket.model.IModel<Icon> model,
IconSize size)
Renders a hippo icon via a reference to the icon sprite.
|
static HippoIcon |
fromStream(String id,
org.apache.wicket.model.IModel<JcrResourceStream> model)
Renders and icon/image from a JcrResourceStream which is referenced by an
IModel . |
static HippoIcon |
fromStream(String id,
org.apache.wicket.model.IModel<JcrResourceStream> model,
int width,
int height)
Renders and icon/image from a JcrResourceStream which is referenced by an
IModel . |
static HippoIcon |
inline(String id,
CmsIcon icon)
Renders a hippo icon of size
IconSize.M as an inline SVG. |
static HippoIcon |
inline(String id,
org.apache.wicket.model.IModel<CmsIcon> model)
Renders a hippo icon of size
IconSize.M as an inline SVG. |
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, 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, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, 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, onAfterRender, onBeforeRender, onComponentTag, 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 static HippoIcon fromSprite(String id, Icon icon)
IconSize.M
via a reference to the icon sprite.id
- the Wicket id of the iconicon
- the icon to renderpublic static HippoIcon fromSprite(String id, Icon icon, IconSize size)
id
- the Wicket id of the iconicon
- the icon to rendersize
- the size of the iconpublic static HippoIcon fromSprite(String id, org.apache.wicket.model.IModel<Icon> model)
IconSize.M
via a reference to the icon sprite.id
- the Wicket id of the iconmodel
- the model containing the icon to renderpublic static HippoIcon fromSprite(String id, org.apache.wicket.model.IModel<Icon> model, IconSize size)
id
- the Wicket id of the iconmodel
- the model containing the icon to rendersize
- the size of the iconpublic static HippoIcon inline(String id, CmsIcon icon)
IconSize.M
as an inline SVG. This makes it possible to,
for example, style the individual shapes in the SVG via CSS.id
- the Wicket id of the iconicon
- the icon to renderpublic static HippoIcon inline(String id, org.apache.wicket.model.IModel<CmsIcon> model)
IconSize.M
as an inline SVG. This makes it possible
to, for example, style the individual shapes in the SVG via CSS.id
- the Wicket id of the iconmodel
- the model containing the icon to renderpublic static HippoIcon fromResource(String id, org.apache.wicket.request.resource.ResourceReference reference)
id
- the Wicket id of the iconreference
- the resource to renderpublic static HippoIcon fromResource(String id, org.apache.wicket.request.resource.ResourceReference reference, IconSize size)
id
- the Wicket id of the iconreference
- the resource to rendersize
- the size to use as width and height value, in pixelspublic static HippoIcon fromResource(String id, org.apache.wicket.request.resource.ResourceReference reference, int width, int height)
id
- the Wicket id of the iconreference
- the resource to renderwidth
- the width of the icon in pixelsheight
- the height of the icon in pixelspublic static HippoIcon fromResourceModel(String id, org.apache.wicket.model.IModel<org.apache.wicket.request.resource.ResourceReference> model)
id
- the Wicket id of the iconmodel
- the model containing the resource to renderpublic static HippoIcon fromStream(String id, org.apache.wicket.model.IModel<JcrResourceStream> model, int width, int height)
IModel
. Delegates rendering
to the JcrImage
which simply outputs an <img />
element.id
- the Wicket id of the iconmodel
- the model containing the icon streamwidth
- the width of the icon in pixelsheight
- the height of the icon in pixelspublic static HippoIcon fromStream(String id, org.apache.wicket.model.IModel<JcrResourceStream> model)
IModel
. Delegates rendering
to the JcrImage
which simply outputs an <img />
element.id
- the Wicket id of the iconmodel
- the model containing the icon streampublic static HippoIcon copy(HippoIcon icon, String newId)
icon
- the icon to rendernewId
- the new Wicket IDpublic abstract void addCssClass(String cssClass)
cssClass
- the CSS class to add.Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.