|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.SimpleTagSupport info.magnolia.cms.taglibs.util.BaseImageTag
public abstract class BaseImageTag
A base class for image related tags e.g. ScaleImageTag
.
Field Summary | |
---|---|
protected java.lang.String |
imageContentNodeName
Attribute: The name of the new content node to create. |
protected java.lang.String |
parentContentNodeName
Attribute: The node where the images are to be saved. |
protected static java.lang.String |
PROPERTIES_CONTENTTYPE_VALUE
The valye of the contentType nodeData in the properties node. |
protected static java.lang.String |
PROPERTIES_EXTENSION_VALUE
The value of the extension nodeData in the properties node. |
Constructor Summary | |
---|---|
BaseImageTag()
|
Method Summary | |
---|---|
java.awt.Color |
convertHexToColor(java.lang.String hex)
|
int[] |
convertHexToRGB(java.lang.String hex)
Converts HEX color to RGB color. |
java.lang.String |
convertToSimpleString(java.lang.String string)
Replace any special characters that are not letters or numbers with a replacement string. |
protected void |
createImageNode(java.io.File imageFile,
Content imageNode)
Create a new imageNode with the image in it. |
protected abstract java.lang.String |
getFilename()
|
protected Content |
getImageContentNode()
|
protected javax.servlet.http.HttpServletRequest |
getRequest()
|
void |
setImageContentNodeName(java.lang.String imageContentNodeName)
Setter for the imageContentNodeName tag attribute. |
void |
setParentContentNodeName(java.lang.String parentContentNodeName)
Setter for the parentContentNodeName tag attribute. |
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PROPERTIES_EXTENSION_VALUE
protected static final java.lang.String PROPERTIES_CONTENTTYPE_VALUE
protected java.lang.String parentContentNodeName
protected java.lang.String imageContentNodeName
Constructor Detail |
---|
public BaseImageTag()
Method Detail |
---|
public void setImageContentNodeName(java.lang.String imageContentNodeName)
imageContentNodeName
tag attribute.
imageContentNodeName
- public void setParentContentNodeName(java.lang.String parentContentNodeName)
parentContentNodeName
tag attribute.
parentContentNodeName
- protected abstract java.lang.String getFilename()
protected javax.servlet.http.HttpServletRequest getRequest()
protected Content getImageContentNode() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
javax.jcr.AccessDeniedException
AccessDeniedException
public java.lang.String convertToSimpleString(java.lang.String string)
public int[] convertHexToRGB(java.lang.String hex)
hex
- HEX valuepublic java.awt.Color convertHexToColor(java.lang.String hex)
protected void createImageNode(java.io.File imageFile, Content imageNode) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException, java.io.FileNotFoundException, java.io.IOException
subString
- The text.textImageNode
- The node that will contain the text images.
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |