org.appfuse.webapp.taglib
Class LabelTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.appfuse.webapp.taglib.LabelTag
All Implemented Interfaces:
Serializable, IterationTag, Tag

public class LabelTag
extends TagSupport

This class is designed to render a

It is designed to be used as follows:

<tag:label key="user.username"/>

See Also:
Serialized Form
JSP Tag:
name="label" bodycontent="empty"

Field Summary
protected  boolean colon
           
protected  String errorClass
           
protected  String key
           
protected  org.apache.commons.logging.Log log
           
protected  String styleClass
           
 
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
LabelTag()
           
 
Method Summary
 int doStartTag()
           
 void release()
          Release all allocated resources.
 void setColon(boolean colon)
          Setter for specifying whether to include colon
 void setErrorClass(String errorClass)
          Setter for assigning a CSS class when errors occur, defaults to labelError.
 void setKey(String key)
           
 void setStyleClass(String styleClass)
          Setter for assigning a CSS class, default is label.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Field Detail

log

protected final transient org.apache.commons.logging.Log log

key

protected String key

styleClass

protected String styleClass

errorClass

protected String errorClass

colon

protected boolean colon
Constructor Detail

LabelTag

public LabelTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException

setKey

public void setKey(String key)
JSP Attribute:
required="true" rtexprvalue="true"

setColon

public void setColon(boolean colon)
Setter for specifying whether to include colon

JSP Attribute:
required="false" rtexprvalue="true"

setStyleClass

public void setStyleClass(String styleClass)
Setter for assigning a CSS class, default is label.

JSP Attribute:
required="false" rtexprvalue="true"

setErrorClass

public void setErrorClass(String errorClass)
Setter for assigning a CSS class when errors occur, defaults to labelError.

JSP Attribute:
required="false" rtexprvalue="true"

release

public void release()
Release all allocated resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport


Copyright � 2002-2006