com.opensymphony.webwork.views.jsp.ui
Class AbstractUITag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.opensymphony.webwork.views.jsp.WebWorkTagSupport
          extended bycom.opensymphony.webwork.views.jsp.ParameterizedTagSupport
              extended bycom.opensymphony.webwork.views.jsp.ui.AbstractUITag
All Implemented Interfaces:
IterationTag, ParamTag.Parametric, Serializable, Tag
Direct Known Subclasses:
AbstractClosingUITag, AbstractListTag, CheckboxTag, ComponentTag, FileTag, HiddenTag, LabelTag, SubmitTag, TextareaTag, TextFieldTag, TokenTag

public abstract class AbstractUITag
extends ParameterizedTagSupport

Abstract base class for all UI tags.

Author:
Matt Ho <matt@enginegreen.com>
See Also:
Serialized Form

Field Summary
protected  String cssClassAttr
           
protected  String cssStyleAttr
           
protected  String disabledAttr
           
protected  String labelAttr
           
protected  String labelPositionAttr
           
protected  String nameAttr
           
protected  String onblurAttr
           
protected  String onchangeAttr
           
protected  String onclickAttr
           
protected  String ondblclickAttr
           
protected  String onfocusAttr
           
protected  String onkeydownAttr
           
protected  String onkeypressAttr
           
protected  String onkeyupAttr
           
protected  String onmousedownAttr
           
protected  String onmousemoveAttr
           
protected  String onmouseoutAttr
           
protected  String onmouseoverAttr
           
protected  String onmouseupAttr
           
protected  String onselectAttr
           
protected  String requiredAttr
           
protected  String tabindexAttr
           
protected  String templateAttr
           
protected  String templateDir
           
protected  String theme
           
protected  String themeAttr
           
protected  String valueAttr
           
 
Fields inherited from class com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
log
 
Fields inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
ALT_SYNTAX
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
AbstractUITag()
           
 
Method Summary
protected  String buildTemplateName(String myTemplate, String myDefaultTemplate)
           
 int doEndTag()
           
 int doStartTag()
           
protected  void evaluateExtraParams(com.opensymphony.xwork.util.OgnlValueStack stack)
           
protected  boolean evaluateNameValue()
           
protected  void evaluateParams(com.opensymphony.xwork.util.OgnlValueStack stack)
           
protected abstract  String getDefaultTemplate()
          A contract that requires each concrete UI Tag to specify which template should be used as a default.
 String getTemplateDir()
           
protected  String getTemplateName()
          Find the name of the Velocity template that we should use.
 String getTheme()
           
protected  Class getValueClassType()
           
protected  void mergeTemplate(String templateName)
           
 void setCssClass(String aCssClass)
           
 void setCssStyle(String aCssStyle)
           
 void setDisabled(String disabled)
           
 void setLabel(String aLabel)
           
 void setLabelposition(String aLabelPosition)
           
 void setName(String aName)
           
 void setOnblur(String onblur)
           
 void setOnchange(String onchange)
           
 void setOnclick(String onclick)
           
 void setOndblclick(String ondblclick)
           
 void setOnfocus(String onfocus)
           
 void setOnkeydown(String onkeydown)
           
 void setOnkeypress(String onkeypress)
           
 void setOnkeyup(String onkeyup)
           
 void setOnmousedown(String onmousedown)
           
 void setOnmousemove(String onmousemove)
           
 void setOnmouseout(String onmouseout)
           
 void setOnmouseover(String onmouseover)
           
 void setOnmouseup(String onmouseup)
           
 void setOnselect(String onselect)
           
 void setRequired(String required)
           
 void setTabindex(String tabindex)
           
 void setTemplate(String aName)
           
 void setTheme(String aName)
           
 void setValue(String aValue)
           
 
Methods inherited from class com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
addParameter, getParameters, reset
 
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
findString, findValue, findValue, getStack, toString, translateVariables
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cssClassAttr

protected String cssClassAttr

cssStyleAttr

protected String cssStyleAttr

disabledAttr

protected String disabledAttr

labelAttr

protected String labelAttr

labelPositionAttr

protected String labelPositionAttr

nameAttr

protected String nameAttr

requiredAttr

protected String requiredAttr

tabindexAttr

protected String tabindexAttr

templateAttr

protected String templateAttr

templateDir

protected String templateDir

theme

protected String theme

themeAttr

protected String themeAttr

valueAttr

protected String valueAttr

onclickAttr

protected String onclickAttr

ondblclickAttr

protected String ondblclickAttr

onmousedownAttr

protected String onmousedownAttr

onmouseupAttr

protected String onmouseupAttr

onmouseoverAttr

protected String onmouseoverAttr

onmousemoveAttr

protected String onmousemoveAttr

onmouseoutAttr

protected String onmouseoutAttr

onfocusAttr

protected String onfocusAttr

onblurAttr

protected String onblurAttr

onkeypressAttr

protected String onkeypressAttr

onkeydownAttr

protected String onkeydownAttr

onkeyupAttr

protected String onkeyupAttr

onselectAttr

protected String onselectAttr

onchangeAttr

protected String onchangeAttr
Constructor Detail

AbstractUITag

public AbstractUITag()
Method Detail

setCssClass

public void setCssClass(String aCssClass)

setCssStyle

public void setCssStyle(String aCssStyle)

setDisabled

public void setDisabled(String disabled)

setLabel

public void setLabel(String aLabel)

setLabelposition

public void setLabelposition(String aLabelPosition)

setName

public void setName(String aName)

setRequired

public void setRequired(String required)

setTabindex

public void setTabindex(String tabindex)

setTemplate

public void setTemplate(String aName)

getTemplateDir

public String getTemplateDir()

setTheme

public void setTheme(String aName)

getTheme

public String getTheme()

setValue

public void setValue(String aValue)

setOnclick

public void setOnclick(String onclick)

setOndblclick

public void setOndblclick(String ondblclick)

setOnmousedown

public void setOnmousedown(String onmousedown)

setOnmouseup

public void setOnmouseup(String onmouseup)

setOnmouseover

public void setOnmouseover(String onmouseover)

setOnmousemove

public void setOnmousemove(String onmousemove)

setOnmouseout

public void setOnmouseout(String onmouseout)

setOnfocus

public void setOnfocus(String onfocus)

setOnblur

public void setOnblur(String onblur)

setOnkeypress

public void setOnkeypress(String onkeypress)

setOnkeydown

public void setOnkeydown(String onkeydown)

setOnkeyup

public void setOnkeyup(String onkeyup)

setOnselect

public void setOnselect(String onselect)

setOnchange

public void setOnchange(String onchange)

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

getDefaultTemplate

protected abstract String getDefaultTemplate()
A contract that requires each concrete UI Tag to specify which template should be used as a default. For example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value not begin with a '/' unless you intend to make the path absolute rather than relative to the current theme.

Returns:
The name of the template to be used as the default.

getTemplateName

protected String getTemplateName()
Find the name of the Velocity template that we should use.

Returns:
The name of the Velocity template that we should use. This value should begin with a '/'

getValueClassType

protected Class getValueClassType()

buildTemplateName

protected String buildTemplateName(String myTemplate,
                                   String myDefaultTemplate)
Parameters:
myTemplate -
myDefaultTemplate -

evaluateExtraParams

protected void evaluateExtraParams(com.opensymphony.xwork.util.OgnlValueStack stack)

evaluateNameValue

protected boolean evaluateNameValue()

evaluateParams

protected void evaluateParams(com.opensymphony.xwork.util.OgnlValueStack stack)

mergeTemplate

protected void mergeTemplate(String templateName)
                      throws Exception
Throws:
Exception

WebWork Project Page