public class HstImageVariantTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Field and Description |
---|---|
protected boolean |
fallback
whether to fallback to original variant when the
name variant does not exist. |
protected String |
name
the name of the image variant to use
|
protected String |
replaces
the name of variants to replaces.
|
Constructor and Description |
---|
HstImageVariantTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
int |
doEndTag() |
int |
doStartTag() |
void |
setFallback(boolean fallback) |
void |
setName(String name) |
void |
setReplaces(String replaces) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected String name
protected String replaces
null
all variants will be replacedprotected boolean fallback
name
variant does not exist. Default falsepublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
protected void cleanup()
public void setName(String name)
public void setReplaces(String replaces)
public void setFallback(boolean fallback)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.