org.araneaframework.jsp.tag.uilib.form
Class FormSimpleLabelHtmlTag
java.lang.Object
org.araneaframework.jsp.tag.BaseTag
org.araneaframework.jsp.tag.PresentationTag
org.araneaframework.jsp.tag.uilib.form.FormSimpleLabelHtmlTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, AttributedTagInterface, ContainedTagInterface
public class FormSimpleLabelHtmlTag
- extends PresentationTag
Standard simple label tag.
- Author:
- Oleg Mürk
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
Method Summary |
protected int |
doStartTag(Writer out)
Internal callback: before tag. |
void |
setAccessKeyId(String accessKeyId)
Sets the resource id containing the access key for this label. |
void |
setFor(String elementName)
|
void |
setLabelId(String labelId)
|
void |
setShowColon(String showColon)
|
void |
setShowMandatory(String mandatory)
|
static void |
writeLabel(Writer out,
String label,
boolean mandatory,
String styleClass,
String formElementId,
javax.servlet.jsp.PageContext pageContext,
boolean showColon,
String accessKey)
Deprecated. Use writeLabel(Writer,String,boolean,String,String,PageContext,boolean,String,String) instead |
static void |
writeLabel(Writer out,
String label,
boolean mandatory,
String styleClass,
String formElementId,
javax.servlet.jsp.PageContext pageContext,
boolean showColon,
String accessKey,
String style)
|
static void |
writeSelectLabel(Writer out,
String label,
String styleClass)
|
| 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 |
LABEL_SPAN_PREFIX
public static final String LABEL_SPAN_PREFIX
- Since:
- 1.1
- See Also:
- Constant Field Values
ASTERISK_STYLE
public static final String ASTERISK_STYLE
- See Also:
- Constant Field Values
showColon
protected boolean showColon
labelId
protected String labelId
mandatory
protected boolean mandatory
forElementId
protected String forElementId
accessKeyId
protected String accessKeyId
FormSimpleLabelHtmlTag
public FormSimpleLabelHtmlTag()
doStartTag
protected int doStartTag(Writer out)
throws Exception
- Description copied from class:
BaseTag
- Internal callback: before tag.
- Overrides:
doStartTag in class PresentationTag
- Throws:
Exception
setLabelId
public void setLabelId(String labelId)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setShowMandatory
public void setShowMandatory(String mandatory)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setShowColon
public void setShowColon(String showColon)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setFor
public void setFor(String elementName)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
throws javax.servlet.jsp.JspException
- Sets the resource id containing the access key for this label.
This attribute is optional, if it is not specified, the resource id is constructed as
<label-id>.access-key.
When this resource exists and contains a single character, this character is used as an
access key for the label. Otherwise no access key is used.
- Throws:
javax.servlet.jsp.JspException
writeLabel
public static void writeLabel(Writer out,
String label,
boolean mandatory,
String styleClass,
String formElementId,
javax.servlet.jsp.PageContext pageContext,
boolean showColon,
String accessKey)
throws Exception
- Deprecated. Use
writeLabel(Writer,String,boolean,String,String,PageContext,boolean,String,String) instead
- Throws:
Exception
writeLabel
public static void writeLabel(Writer out,
String label,
boolean mandatory,
String styleClass,
String formElementId,
javax.servlet.jsp.PageContext pageContext,
boolean showColon,
String accessKey,
String style)
throws Exception
- Throws:
Exception
writeSelectLabel
public static void writeSelectLabel(Writer out,
String label,
String styleClass)
throws IOException
- Throws:
IOException