org.jmage.tags
Class JmageTagHandler

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.jmage.tags.JmageTagHandler
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BackgroundImageTagHandler, BlurTagHandler, BorderExtenderTagHandler, BrightenTagHandler, ColorizeTagHandler, CropTagHandler, DarkenTagHandler, EdgeEnhancementTagHandler, EncoderTagHandler, FilterChainTagHandler, GreyScaleTagHandler, ImageOverlayTagHandler, LowPassTagHandler, MeanTagHandler, ResizeTagHandler, RotationTagHandler, SharpenTagHandler, TextOverlayTagHandler

public abstract class JmageTagHandler
extends javax.servlet.jsp.tagext.TagSupport

JmageTagHandler is the abstract superclass for all TagHandlers

See Also:
Serialized Form

Field Summary
protected  java.lang.String border
           
protected static java.lang.String CHAIN
           
protected  ApplicationContext context
           
protected  java.lang.String cssClass
           
protected  java.lang.String cssStyle
           
protected static java.lang.String DIV
           
protected  java.lang.String encode
           
protected static java.lang.String ENCODE
           
protected static java.lang.String END_DIV
           
protected static java.lang.String END_SPAN
           
protected  boolean fixPNGonIE
           
protected  java.lang.String height
           
protected  java.lang.String id
           
protected  java.lang.String image
           
protected static java.lang.String IMG_TAG
           
protected static java.lang.String JMAGE
           
protected  javax.servlet.jsp.JspWriter jspWriter
           
protected static org.apache.log4j.Logger log
           
protected  java.lang.String onclick
           
protected  java.lang.String ondblclick
           
protected  java.lang.String onkeydown
           
protected  java.lang.String onkeypress
           
protected  java.lang.String onkeyup
           
protected  java.lang.String onmousedown
           
protected  java.lang.String onmousemove
           
protected  java.lang.String onmouseout
           
protected  java.lang.String onmouseover
           
protected  java.lang.String onmouseup
           
protected  javax.servlet.http.HttpServletRequest request
           
protected  java.lang.StringBuffer servletInvocation
           
protected static java.lang.String SPAN
           
protected static java.lang.String SRC_ATT
           
protected  TextUtil textUtil
           
protected  java.lang.String title
           
protected  UserAgentUtil userAgentUtil
           
protected  java.lang.String width
           
protected static java.lang.String WRITE_ERROR
           
protected static java.lang.String WRITE_SUCCESS
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
JmageTagHandler()
           
 
Method Summary
protected  void appendEventHandlerAttributes(java.lang.StringBuffer servletInvocation)
           
protected  void appendIDAttr(java.lang.StringBuffer servletInvocation)
           
protected  void appendImgTag(java.lang.StringBuffer servletInvocation)
           
protected  void appendInvisibleTooltip(java.lang.StringBuffer servletInvocation)
           
protected  void appendJMAGEConversion(java.lang.StringBuffer servletInvocation)
           
protected  void appendSpanStyle(java.lang.StringBuffer servletInvocation)
           
protected  void appendTooltipEventHandlers()
           
protected  boolean detectIEPNG(javax.servlet.http.HttpServletRequest request)
          Detect whether the current servlet request comes from IE on windows and requests a PNG encoded resource.
 int doEndTag()
           
 int doStartTag()
           
 java.lang.String getBorder()
           
 java.lang.String getCssClass()
           
 java.lang.String getCssStyle()
           
 java.lang.String getEncode()
           
 java.lang.String getHeight()
           
 java.lang.String getId()
           
 java.lang.String getImage()
           
 java.lang.String getOnclick()
           
 java.lang.String getOndblclick()
           
 java.lang.String getOnkeydown()
           
 java.lang.String getOnkeypress()
           
 java.lang.String getOnkeyup()
           
 java.lang.String getOnmousedown()
           
 java.lang.String getOnmousemove()
           
 java.lang.String getOnmouseout()
           
 java.lang.String getOnmouseover()
           
 java.lang.String getOnmouseup()
           
 java.lang.String getTitle()
           
 java.lang.String getWidth()
           
 void setBorder(java.lang.String border)
           
 void setCssClass(java.lang.String cssClass)
           
 void setCssStyle(java.lang.String cssStyle)
           
 void setEncode(java.lang.String encode)
           
 void setHeight(java.lang.String height)
           
 void setId(java.lang.String id)
           
 void setImage(java.lang.String image)
           
 void setOnclick(java.lang.String onclick)
           
 void setOndblclick(java.lang.String ondblclick)
           
 void setOnkeydown(java.lang.String onkeydown)
           
 void setOnkeypress(java.lang.String onkeypress)
           
 void setOnkeyup(java.lang.String onkeyup)
           
 void setOnmousedown(java.lang.String onmousedown)
           
 void setOnmousemove(java.lang.String onmousemove)
           
 void setOnmouseout(java.lang.String onmouseout)
           
 void setOnmouseover(java.lang.String onmouseover)
           
 void setOnmouseup(java.lang.String onmouseup)
           
 void setTitle(java.lang.String title)
           
 void setWidth(java.lang.String width)
           
protected  boolean useAlphaImageLoader()
          Defines the conditions under which Microsofts alpha image loader is used instead of the html img tag
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log

IMG_TAG

protected static final java.lang.String IMG_TAG
See Also:
Constant Field Values

SRC_ATT

protected static final java.lang.String SRC_ATT
See Also:
Constant Field Values

JMAGE

protected static final java.lang.String JMAGE
See Also:
Constant Field Values

CHAIN

protected static final java.lang.String CHAIN
See Also:
Constant Field Values

WRITE_ERROR

protected static final java.lang.String WRITE_ERROR
See Also:
Constant Field Values

WRITE_SUCCESS

protected static final java.lang.String WRITE_SUCCESS
See Also:
Constant Field Values

request

protected javax.servlet.http.HttpServletRequest request

jspWriter

protected javax.servlet.jsp.JspWriter jspWriter

servletInvocation

protected java.lang.StringBuffer servletInvocation

userAgentUtil

protected UserAgentUtil userAgentUtil

textUtil

protected TextUtil textUtil

id

protected java.lang.String id

image

protected java.lang.String image

encode

protected java.lang.String encode

width

protected java.lang.String width

height

protected java.lang.String height

title

protected java.lang.String title

border

protected java.lang.String border

cssClass

protected java.lang.String cssClass

cssStyle

protected java.lang.String cssStyle

onclick

protected java.lang.String onclick

ondblclick

protected java.lang.String ondblclick

onmousedown

protected java.lang.String onmousedown

onmouseup

protected java.lang.String onmouseup

onmouseover

protected java.lang.String onmouseover

onmousemove

protected java.lang.String onmousemove

onmouseout

protected java.lang.String onmouseout

onkeypress

protected java.lang.String onkeypress

onkeydown

protected java.lang.String onkeydown

onkeyup

protected java.lang.String onkeyup

fixPNGonIE

protected boolean fixPNGonIE

context

protected ApplicationContext context

ENCODE

protected static final java.lang.String ENCODE
See Also:
Constant Field Values

SPAN

protected static final java.lang.String SPAN
See Also:
Constant Field Values

END_SPAN

protected static final java.lang.String END_SPAN
See Also:
Constant Field Values

DIV

protected static final java.lang.String DIV
See Also:
Constant Field Values

END_DIV

protected static final java.lang.String END_DIV
See Also:
Constant Field Values
Constructor Detail

JmageTagHandler

public JmageTagHandler()
Method Detail

getId

public java.lang.String getId()
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport

setId

public void setId(java.lang.String id)
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

getImage

public java.lang.String getImage()

setImage

public void setImage(java.lang.String image)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getBorder

public java.lang.String getBorder()

setBorder

public void setBorder(java.lang.String border)

getCssClass

public java.lang.String getCssClass()

setCssClass

public void setCssClass(java.lang.String cssClass)

getCssStyle

public java.lang.String getCssStyle()

setCssStyle

public void setCssStyle(java.lang.String cssStyle)

getEncode

public java.lang.String getEncode()

setEncode

public void setEncode(java.lang.String encode)

getWidth

public java.lang.String getWidth()

setWidth

public void setWidth(java.lang.String width)

getHeight

public java.lang.String getHeight()

setHeight

public void setHeight(java.lang.String height)

getOnclick

public java.lang.String getOnclick()

setOnclick

public void setOnclick(java.lang.String onclick)

getOndblclick

public java.lang.String getOndblclick()

setOndblclick

public void setOndblclick(java.lang.String ondblclick)

getOnmousedown

public java.lang.String getOnmousedown()

setOnmousedown

public void setOnmousedown(java.lang.String onmousedown)

getOnmouseup

public java.lang.String getOnmouseup()

setOnmouseup

public void setOnmouseup(java.lang.String onmouseup)

getOnmouseover

public java.lang.String getOnmouseover()

setOnmouseover

public void setOnmouseover(java.lang.String onmouseover)

getOnmousemove

public java.lang.String getOnmousemove()

setOnmousemove

public void setOnmousemove(java.lang.String onmousemove)

getOnmouseout

public java.lang.String getOnmouseout()

setOnmouseout

public void setOnmouseout(java.lang.String onmouseout)

getOnkeypress

public java.lang.String getOnkeypress()

setOnkeypress

public void setOnkeypress(java.lang.String onkeypress)

getOnkeydown

public java.lang.String getOnkeydown()

setOnkeydown

public void setOnkeydown(java.lang.String onkeydown)

getOnkeyup

public java.lang.String getOnkeyup()

setOnkeyup

public void setOnkeyup(java.lang.String onkeyup)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

appendInvisibleTooltip

protected void appendInvisibleTooltip(java.lang.StringBuffer servletInvocation)

appendTooltipEventHandlers

protected void appendTooltipEventHandlers()

appendEventHandlerAttributes

protected void appendEventHandlerAttributes(java.lang.StringBuffer servletInvocation)

appendIDAttr

protected void appendIDAttr(java.lang.StringBuffer servletInvocation)

appendImgTag

protected void appendImgTag(java.lang.StringBuffer servletInvocation)

appendSpanStyle

protected void appendSpanStyle(java.lang.StringBuffer servletInvocation)

appendJMAGEConversion

protected void appendJMAGEConversion(java.lang.StringBuffer servletInvocation)

useAlphaImageLoader

protected boolean useAlphaImageLoader()
Defines the conditions under which Microsofts alpha image loader is used instead of the html img tag

Returns:
true | false

detectIEPNG

protected boolean detectIEPNG(javax.servlet.http.HttpServletRequest request)
Detect whether the current servlet request comes from IE on windows and requests a PNG encoded resource.

Parameters:
request -
Returns:
true | false


Copyright © 2004-2008 Sourceforge. All Rights Reserved.