|
||||||||||
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.templating.jsp.taglib.BaseImageTag
public abstract class BaseImageTag
A base class for image related tags e.g. ScaleImageTag
.
Field Summary | |
---|---|
protected String |
imageContentNodeName
Attribute: The name of the new content node to create. |
protected String |
parentContentNodeName
Attribute: The node where the images are to be saved. |
protected static String |
PROPERTIES_CONTENTTYPE_VALUE
The valye of the contentType nodeData in the properties node. |
protected static String |
PROPERTIES_EXTENSION_VALUE
The value of the extension nodeData in the properties node. |
Constructor Summary | |
---|---|
BaseImageTag()
|
Method Summary | |
---|---|
Color |
convertHexToColor(String hex)
|
int[] |
convertHexToRGB(String hex)
Converts HEX color to RGB color. |
String |
convertToSimpleString(String string)
Replace any special characters that are not letters or numbers with a replacement string. |
protected void |
createImageNode(File imageFile,
Content imageNode)
Create a new imageNode with the image in it. |
protected abstract String |
getFilename()
|
protected javax.jcr.Node |
getImageContentNode()
|
protected javax.servlet.http.HttpServletRequest |
getRequest()
|
void |
setImageContentNodeName(String imageContentNodeName)
Setter for the imageContentNodeName tag attribute. |
void |
setParentContentNodeName(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 String PROPERTIES_EXTENSION_VALUE
protected static final String PROPERTIES_CONTENTTYPE_VALUE
protected String parentContentNodeName
protected String imageContentNodeName
Constructor Detail |
---|
public BaseImageTag()
Method Detail |
---|
public void setImageContentNodeName(String imageContentNodeName)
imageContentNodeName
tag attribute.
public void setParentContentNodeName(String parentContentNodeName)
parentContentNodeName
tag attribute.
protected abstract String getFilename()
protected javax.servlet.http.HttpServletRequest getRequest()
protected javax.jcr.Node getImageContentNode() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
public String convertToSimpleString(String string)
public int[] convertHexToRGB(String hex)
hex
- HEX valuepublic Color convertHexToColor(String hex)
protected void createImageNode(File imageFile, Content imageNode) throws javax.jcr.PathNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException, FileNotFoundException, IOException
imageFile
- the fileimageNode
- The node that will contain the text images.
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |