org.chwf.taglib.jhtml
Class LabelTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.chwf.taglib.base.LifeCycleTagSupport
|
+--org.chwf.taglib.base.ObjectTagSupport
|
+--org.chwf.taglib.jhtml.FieldTagSupport
|
+--org.chwf.taglib.jhtml.LabelTag
- All Implemented Interfaces:
- Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class LabelTag
- extends FieldTagSupport
Tag handler for the <label>
tag.
- Author:
- Paul Strack
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
void |
cleanup()
Clean up data for tag handler reuse and pooling. |
int |
doStart()
Print the property's label using BeanFilter metadata. |
java.lang.String |
getFor()
The form field name. |
void |
setAccesskey(java.lang.String value)
Pass-through attribute. |
void |
setFor(java.lang.String value)
The form field name. |
void |
setId(java.lang.String value)
Pass-through attribute. |
void |
setLang(java.lang.String value)
Pass-through attribute. |
void |
setObject(java.lang.String objectName)
Calls superclass method. |
void |
setProperty(java.lang.String property)
Calls superclass method. |
void |
setStyle(java.lang.String value)
Pass-through attribute. |
void |
setStyleClass(java.lang.String value)
Pass-through attribute. |
void |
setTitle(java.lang.String value)
Pass-through attribute. |
Methods inherited from class org.chwf.taglib.base.LifeCycleTagSupport |
addAttribute, addParameter, doEnd, doEndTag, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, 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 |
LabelTag
public LabelTag()
cleanup
public void cleanup()
- Clean up data for tag handler reuse and pooling. Should be overridden in
tag handler. Subclasses should always invoke their superclass's cleanup
method:
super.cleanup()
- Overrides:
cleanup
in class FieldTagSupport
setObject
public void setObject(java.lang.String objectName)
throws javax.servlet.jsp.JspException
- Calls superclass method. Is present here because of a bug in some servlet
engines that requires tag attibute setters to be defined in the tag class
itself.
- Overrides:
setObject
in class ObjectTagSupport
- Parameters:
objectName
- The object name.- Throws:
javax.servlet.jsp.JspException
- For errors.
setProperty
public void setProperty(java.lang.String property)
throws javax.servlet.jsp.JspException
- Calls superclass method. Is present here because of a bug in some servlet
engines that requires tag attibute setters to be defined in the tag class
itself.
- Overrides:
setProperty
in class ObjectTagSupport
- Parameters:
property
- The property name.- Throws:
javax.servlet.jsp.JspException
- For errors.
setFor
public void setFor(java.lang.String value)
- The form field name. Defaults to the property value if absent. Effectively
equivalent to the "name" attribute.
- Parameters:
value
- The field name.
getFor
public java.lang.String getFor()
- The form field name. Defaults to the property value if absent. Effectively
equivalent to the "name" attribute.
- Returns:
- The field name.
setAccesskey
public void setAccesskey(java.lang.String value)
- Pass-through attribute. Same meaning as in HTML.
- Parameters:
value
- The attribute value.
doStart
public int doStart()
throws java.io.IOException,
javax.servlet.jsp.JspException
- Print the property's label using BeanFilter metadata.
- Overrides:
doStart
in class LifeCycleTagSupport
- Returns:
- SKIP_BODY.
- Throws:
java.io.IOException
- For write errors.javax.servlet.jsp.JspException
- If the property cannot be initialized.
setStyleClass
public void setStyleClass(java.lang.String value)
- Pass-through attribute. Same meaning as "class" in HTML.
- Parameters:
value
- The attribute value.
setId
public void setId(java.lang.String value)
- Pass-through attribute. Same meaning as in HTML.
- Overrides:
setId
in class javax.servlet.jsp.tagext.TagSupport
- Parameters:
value
- The attribute value.
setLang
public void setLang(java.lang.String value)
- Pass-through attribute. Same meaning as in HTML.
- Parameters:
value
- The attribute value.
setStyle
public void setStyle(java.lang.String value)
- Pass-through attribute. Same meaning as in HTML.
- Parameters:
value
- The attribute value.
setTitle
public void setTitle(java.lang.String value)
- Pass-through attribute. Same meaning as in HTML.
- Parameters:
value
- The attribute value.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.