public abstract class CmsJspImageScalerTagSupport extends javax.servlet.jsp.tagext.BodyTagSupport
| Modifier and Type | Field and Description |
|---|---|
protected CmsImageScaler |
m_scaler
The given image scaler parameters.
|
protected java.lang.String |
m_src
The image source.
|
protected static java.lang.String |
SCALE_ATTR_HEIGHT
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_MAXHEIGHT
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_MAXWIDTH
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_POSITION
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_QUALITY
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_RENDERMODE
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_TYPE
Required image scaler attributes constant.
|
protected static java.lang.String |
SCALE_ATTR_WIDTH
Required image scaler attributes constant.
|
| Constructor and Description |
|---|
CmsJspImageScalerTagSupport()
Initializes a CmsImageScaler to be used by derived classes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeight()
Returns the scaling height for the image.
|
java.lang.String |
getMaxHeight()
Returns the maximum scaling height for the image, only needed if scale type is 5.
|
java.lang.String |
getMaxWidth()
Returns the maximum scaling width for the image, only needed if scale type is 5.
|
java.lang.String |
getScaleColor()
Returns the background color used by the image scaler.
|
java.lang.String |
getScaleFilter()
Returns the filter list used by the image scaler.
|
java.lang.String |
getScalePosition()
Returns the position used by the image scaler.
|
java.lang.String |
getScaleQuality()
Returns the quality used by the image scaler.
|
java.lang.String |
getScaleRendermode()
Returns the render mode used by the image scaler.
|
java.lang.String |
getScaleType()
Returns the scaling type for the image.
|
java.lang.String |
getSrc()
Returns the source of the image to scale,
which will have the OpenCms webapp / servlet prefix added.
|
java.lang.String |
getWidth()
Returns the scaling width for the image.
|
void |
release()
Does some cleanup and creates a new ImageScaler before the tag is released to the tag pool.
|
void |
setHeight(java.lang.String value)
Sets the scaling height for the image.
|
void |
setMaxHeight(java.lang.String value)
Sets the maximum scaling height for the image, only needed if scale type is 5.
|
void |
setMaxWidth(java.lang.String value)
Sets the maximum scaling width for the image, only needed if scale type is 5.
|
void |
setScaleColor(java.lang.String value)
Sets the background color used by the image scaler.
|
void |
setScaleFilter(java.lang.String value)
Sets the filter(s) used by the image scaler.
|
void |
setScalePosition(java.lang.String value)
Sets the position used by the image scaler.
|
void |
setScaleQuality(java.lang.String value)
Sets the quality used by the image scaler.
|
void |
setScaleRendermode(java.lang.String value)
Sets the render mode used by the image scaler.
|
void |
setScaleType(java.lang.String value)
Sets the scaling type for the image.
|
void |
setSrc(java.lang.String value)
Sets the source of the image.
|
void |
setWidth(java.lang.String value)
Sets the scaling width for the image.
|
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected static final java.lang.String SCALE_ATTR_HEIGHT
protected static final java.lang.String SCALE_ATTR_MAXHEIGHT
protected static final java.lang.String SCALE_ATTR_MAXWIDTH
protected static final java.lang.String SCALE_ATTR_POSITION
protected static final java.lang.String SCALE_ATTR_QUALITY
protected static final java.lang.String SCALE_ATTR_RENDERMODE
protected static final java.lang.String SCALE_ATTR_TYPE
protected static final java.lang.String SCALE_ATTR_WIDTH
protected transient CmsImageScaler m_scaler
protected java.lang.String m_src
public CmsJspImageScalerTagSupport()
release() is called.public java.lang.String getHeight()
public java.lang.String getMaxHeight()
public java.lang.String getMaxWidth()
public java.lang.String getScaleColor()
public java.lang.String getScaleFilter()
public java.lang.String getScalePosition()
public java.lang.String getScaleQuality()
public java.lang.String getScaleRendermode()
public java.lang.String getScaleType()
public java.lang.String getSrc()
public java.lang.String getWidth()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportTag.release()public void setHeight(java.lang.String value)
If no valid integer is given, then "0" is used as value.
value - the scaling height for the image to setpublic void setMaxHeight(java.lang.String value)
If no valid integer is given, then the value of getHeight() is used as value.
value - the maximum scaling height for the image to setpublic void setMaxWidth(java.lang.String value)
If no valid integer is given, then the value of getWidth() is used as value.
value - the maximum scaling width for the image to setpublic void setScaleColor(java.lang.String value)
value - the background color to setpublic void setScaleFilter(java.lang.String value)
value - the filter(s) to setpublic void setScalePosition(java.lang.String value)
value - the position to setpublic void setScaleQuality(java.lang.String value)
value - the quality to setpublic void setScaleRendermode(java.lang.String value)
value - the render mode to setpublic void setScaleType(java.lang.String value)
If no valid integer is given, then "0" is used as value.
value - the scaling type for the image to setpublic void setSrc(java.lang.String value)
The source must be an absolute path in the current users OpenCms site, without any webapp or servlet prefix.
value - the image source to setpublic void setWidth(java.lang.String value)
If no valid integer is given, then "0" is used as value.
value - the scaling width for the image to set