org.araneaframework.jsp.tag.presentation
Class BaseImageHtmlTag

java.lang.Object
  extended byorg.araneaframework.jsp.tag.BaseTag
      extended byorg.araneaframework.jsp.tag.PresentationTag
          extended byorg.araneaframework.jsp.tag.presentation.BaseImageTag
              extended byorg.araneaframework.jsp.tag.presentation.BaseImageHtmlTag
All Implemented Interfaces:
AttributedTagInterface, ContainedTagInterface, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public abstract class BaseImageHtmlTag
extends BaseImageTag

Standard image base tag.

Author:
Oleg Mürk

Nested Class Summary
 
Nested classes inherited from class org.araneaframework.jsp.tag.presentation.BaseImageTag
BaseImageTag.Info
 
Field Summary
 
Fields inherited from class org.araneaframework.jsp.tag.presentation.BaseImageTag
alt, code, height, src, title, width
 
Fields inherited from class org.araneaframework.jsp.tag.PresentationTag
attributes, baseStyleClass, style, styleClass
 
Fields inherited from class org.araneaframework.jsp.tag.BaseTag
GLOBAL_CONTEXT_ENTRIES_KEY, pageContext, parent
 
Fields inherited from interface org.araneaframework.jsp.tag.basic.AttributedTagInterface
ATTRIBUTED_TAG_KEY, HTML_ELEMENT_KEY
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BaseImageHtmlTag()
           
 
Method Summary
protected  int doStartTag(Writer out)
          Internal callback: before tag.
 void writeImage(Writer out, String src, String width, String height, String title)
          Method to write out image with given properties and default style.
static void writeImage(Writer out, String src, String width, String height, String styleClass, String title)
          Static method to write out image with given properties.
static void writeImage(Writer out, String src, String width, String height, String alt, String styleClass, String title)
          Static method to write out image with given properties.
 void writeImageLocal(Writer out, String src, String width, String height, String alt, String styleClass, String title)
           
 
Methods inherited from class org.araneaframework.jsp.tag.presentation.BaseImageTag
getImageInfo, setAlt, setCode, setHeight, setSrc, setTitle, setWidth
 
Methods inherited from class org.araneaframework.jsp.tag.PresentationTag
addAttribute, calculateStyleClass, getStyle, getStyleClass, setPageContext, setStyle, setStyleClass
 
Methods inherited from class org.araneaframework.jsp.tag.BaseTag
addContextEntry, doCatch, doEndTag, doEndTag, doFinally, doStartTag, evaluate, evaluateNotNull, executeEndSubtag, executeEndTagAndUnregister, executeStartSubtag, executeSubtag, getConfiguration, getContextEntry, getContextWidget, getContextWidgetFullId, getEnvironment, getLocalizationContext, getOutputData, getParent, hideGlobalContextEntries, registerAndExecuteStartTag, registerSubtag, release, requireContextEntry, restoreGlobalContextEntries, setParent, unregisterSubtag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseImageHtmlTag

public BaseImageHtmlTag()
Method Detail

doStartTag

protected int doStartTag(Writer out)
                  throws Exception
Description copied from class: BaseTag
Internal callback: before tag.

Overrides:
doStartTag in class BaseImageTag
Throws:
Exception

writeImage

public void writeImage(Writer out,
                       String src,
                       String width,
                       String height,
                       String title)
                throws javax.servlet.jsp.JspException,
                       IOException
Method to write out image with given properties and default style.

Throws:
javax.servlet.jsp.JspException
IOException

writeImageLocal

public void writeImageLocal(Writer out,
                            String src,
                            String width,
                            String height,
                            String alt,
                            String styleClass,
                            String title)
                     throws javax.servlet.jsp.JspException,
                            IOException
Throws:
javax.servlet.jsp.JspException
IOException

writeImage

public static void writeImage(Writer out,
                              String src,
                              String width,
                              String height,
                              String styleClass,
                              String title)
                       throws javax.servlet.jsp.JspException,
                              IOException
Static method to write out image with given properties.

Throws:
javax.servlet.jsp.JspException
IOException

writeImage

public static void writeImage(Writer out,
                              String src,
                              String width,
                              String height,
                              String alt,
                              String styleClass,
                              String title)
                       throws javax.servlet.jsp.JspException,
                              IOException
Static method to write out image with given properties.

Throws:
javax.servlet.jsp.JspException
IOException