org.ow2.jonas.webapp.taglib
Class JonasButtonTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts.taglib.html.BaseHandlerTag
              extended by org.apache.struts.taglib.html.LinkTag
                  extended by org.ow2.jonas.webapp.taglib.JonasButtonTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag
Direct Known Subclasses:
JonasSubmitTag

public class JonasButtonTag
extends org.apache.struts.taglib.html.LinkTag

Author:
Michel-Ange ANTON
See Also:
Serialized Form

Field Summary
protected  String ms_LastStyleClass
           
protected  String ms_PathImage
           
protected  String ms_StyleClassButton
           
 
Fields inherited from class org.apache.struts.taglib.html.LinkTag
action, anchor, forward, href, indexId, linkName, messages, module, name, page, paramId, paramName, paramProperty, paramScope, property, scope, target, text, transaction, useLocalEncoding
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, doDisabled, doReadonly, indexed, tabindex
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
JonasButtonTag()
           
 
Method Summary
 int doEndTag()
          Render the end of the hyperlink.
 int doStartTag()
          Render the beginning of the hyperlink.
 String getDisabledName()
           
 String getDisabledProperty()
           
 String getDisabledValueEqual()
           
 String getDisabledValueNotEqual()
           
 int getHeightBorder()
           
 String getImagesDir()
           
 String getImagesRoot()
           
 String getStyleClassBackground()
           
 String getStyleClassBorderLight()
           
 String getStyleClassBorderShadow()
           
 String getStyleClassDisabled()
           
protected  WhereAreYou getWhereAreYouInstance()
           
 int getWidthBorder()
           
protected  String lookupProperty(String beanName, String property)
           
protected  void makePathImage()
           
protected  String prepareBorderBottom()
           
protected  String prepareBorderColumn(String ps_Class)
          Return render image.
protected  String prepareBorderTop()
           
protected  String prepareImage()
          Return render image.
 void release()
           
 void setDisabledName(String disabledName)
           
 void setDisabledProperty(String disabledProperty)
           
 void setDisabledValueEqual(String disabledValueEqual)
           
 void setDisabledValueNotEqual(String disabledValueNotEqual)
           
 void setHeightBorder(int heightBorder)
           
 void setImagesDir(String imagesDir)
           
 void setStyleClassBackground(String styleClassBackground)
           
 void setStyleClassBorderLight(String styleClassBorderLight)
           
 void setStyleClassBorderShadow(String styleClassBorderShadow)
           
 void setStyleClassDisabled(String styleClassDisabled)
           
 void setWidthBorder(int widthBorder)
           
 
Methods inherited from class org.apache.struts.taglib.html.LinkTag
calculateURL, doAfterBody, getAction, getAnchor, getForward, getHref, getIndexId, getLinkName, getModule, getName, getPage, getParamId, getParamName, getParamProperty, getParamScope, getProperty, getScope, getTarget, getTransaction, isUseLocalEncoding, setAction, setAnchor, setForward, setHref, setIndexId, setLinkName, setModule, setName, setPage, setParamId, setParamName, setParamProperty, setParamScope, setProperty, setScope, setTarget, setTransaction, setUseLocalEncoding
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

ms_PathImage

protected String ms_PathImage

ms_LastStyleClass

protected String ms_LastStyleClass

ms_StyleClassButton

protected String ms_StyleClassButton
Constructor Detail

JonasButtonTag

public JonasButtonTag()
Method Detail

getHeightBorder

public int getHeightBorder()

setHeightBorder

public void setHeightBorder(int heightBorder)

getImagesDir

public String getImagesDir()

setImagesDir

public void setImagesDir(String imagesDir)

getWidthBorder

public int getWidthBorder()

setWidthBorder

public void setWidthBorder(int widthBorder)

getStyleClassBorderLight

public String getStyleClassBorderLight()

setStyleClassBorderLight

public void setStyleClassBorderLight(String styleClassBorderLight)

getStyleClassBorderShadow

public String getStyleClassBorderShadow()

setStyleClassBorderShadow

public void setStyleClassBorderShadow(String styleClassBorderShadow)

getStyleClassBackground

public String getStyleClassBackground()

setStyleClassBackground

public void setStyleClassBackground(String styleClassBackground)

getStyleClassDisabled

public String getStyleClassDisabled()

setStyleClassDisabled

public void setStyleClassDisabled(String styleClassDisabled)

getDisabledName

public String getDisabledName()

setDisabledName

public void setDisabledName(String disabledName)

getDisabledProperty

public String getDisabledProperty()

setDisabledProperty

public void setDisabledProperty(String disabledProperty)

getDisabledValueEqual

public String getDisabledValueEqual()

setDisabledValueEqual

public void setDisabledValueEqual(String disabledValueEqual)

getDisabledValueNotEqual

public String getDisabledValueNotEqual()

setDisabledValueNotEqual

public void setDisabledValueNotEqual(String disabledValueNotEqual)

doStartTag

public int doStartTag()
               throws JspException
Render the beginning of the hyperlink.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class org.apache.struts.taglib.html.LinkTag
Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws JspException
Render the end of the hyperlink.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class org.apache.struts.taglib.html.LinkTag
Throws:
JspException - if a JSP exception has occurred

getImagesRoot

public String getImagesRoot()

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class org.apache.struts.taglib.html.LinkTag

makePathImage

protected void makePathImage()

prepareImage

protected String prepareImage()
Return render image.

Returns:

prepareBorderColumn

protected String prepareBorderColumn(String ps_Class)
Return render image.

Returns:

prepareBorderTop

protected String prepareBorderTop()

prepareBorderBottom

protected String prepareBorderBottom()

getWhereAreYouInstance

protected WhereAreYou getWhereAreYouInstance()

lookupProperty

protected String lookupProperty(String beanName,
                                String property)
                         throws JspException
Overrides:
lookupProperty in class org.apache.struts.taglib.html.BaseHandlerTag
Throws:
JspException


Copyright © 2010 OW2 Consortium. All Rights Reserved.