|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.OptionTag
public class OptionTag
Tag for select options. The body of this tag is presented to the user in the option list, while the value attribute is the value returned to the server if this option is selected.
Field Summary | |
---|---|
protected java.lang.String |
bundle
The name of the servlet context attribute containing our message resources. |
protected boolean |
disabled
Is this option disabled? |
protected boolean |
filter
Should the label be filtered for HTML sensitive characters? |
protected java.lang.String |
key
The key used to look up the text displayed to the user for this option, if any. |
protected java.lang.String |
locale
The name of the attribute containing the Locale to be used for looking up internationalized messages. |
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
styleId
The identifier associated with this tag. |
protected java.lang.String |
text
The message text to be displayed to the user for this tag (if any) |
protected java.lang.String |
value
The server value for this option, also used to match against the current property value to determine whether this option should be marked as selected. |
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 | |
---|---|
OptionTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Process the body text of this tag (if any). |
int |
doEndTag()
Process the end of this tag. |
int |
doStartTag()
Process the start of this tag. |
java.lang.String |
getBundle()
|
java.lang.String |
getDir()
Returns the direction for weak/neutral text this element. |
boolean |
getDisabled()
|
boolean |
getFilter()
|
java.lang.String |
getKey()
|
java.lang.String |
getLang()
Returns the language code of this element. |
java.lang.String |
getLocale()
|
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
java.lang.String |
getStyleId()
Return the style identifier for this tag. |
java.lang.String |
getValue()
|
void |
release()
Release any acquired resources. |
protected java.lang.String |
renderOptionElement()
Generate an HTML %lt;option> element. |
void |
setBundle(java.lang.String bundle)
|
void |
setDir(java.lang.String dir)
Sets the direction for weak/neutral text of this element. |
void |
setDisabled(boolean disabled)
|
void |
setFilter(boolean filter)
|
void |
setKey(java.lang.String key)
|
void |
setLang(java.lang.String lang)
Sets the language code of this element. |
void |
setLocale(java.lang.String locale)
|
void |
setStyle(java.lang.String style)
|
void |
setStyleClass(java.lang.String styleClass)
|
void |
setStyleId(java.lang.String styleId)
Set the style identifier for this tag. |
void |
setValue(java.lang.String value)
|
protected java.lang.String |
text()
Return the text to be displayed to the user for this option (if any). |
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 |
---|
protected static MessageResources messages
protected java.lang.String text
protected java.lang.String bundle
protected boolean disabled
protected boolean filter
protected java.lang.String key
protected java.lang.String locale
protected java.lang.String styleId
protected java.lang.String value
Constructor Detail |
---|
public OptionTag()
Method Detail |
---|
public java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
public boolean getDisabled()
public void setDisabled(boolean disabled)
public boolean getFilter()
public void setFilter(boolean filter)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getLocale()
public void setLocale(java.lang.String locale)
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
public java.lang.String getStyleClass()
public void setStyleClass(java.lang.String styleClass)
public java.lang.String getStyleId()
public void setStyleId(java.lang.String styleId)
styleId
- The new style identifierpublic java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getLang()
public void setLang(java.lang.String lang)
public java.lang.String getDir()
public void setDir(java.lang.String dir)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected java.lang.String renderOptionElement() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
protected java.lang.String text() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |