|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.html.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 static java.util.Locale |
defaultLocale
The default locale for our server. |
protected boolean |
disabled
Is this option disabled? |
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. |
private java.lang.String |
style
The style associated with this tag. |
private java.lang.String |
styleClass
The named style class 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. |
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()
|
boolean |
getDisabled()
|
java.lang.String |
getKey()
|
java.lang.String |
getLocale()
|
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
java.lang.String |
getValue()
|
void |
release()
Release any acquired resources. |
void |
setBundle(java.lang.String bundle)
|
void |
setDisabled(boolean disabled)
|
void |
setKey(java.lang.String key)
|
void |
setLocale(java.lang.String locale)
|
void |
setStyle(java.lang.String style)
|
void |
setStyleClass(java.lang.String styleClass)
|
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). |
Field Detail |
protected static final java.util.Locale defaultLocale
protected static MessageResources messages
protected java.lang.String text
protected java.lang.String bundle
protected boolean disabled
protected java.lang.String key
protected java.lang.String locale
private java.lang.String style
private java.lang.String styleClass
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 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 getValue()
public void setValue(java.lang.String value)
public int doStartTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic int doAfterBody() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic void release()
protected java.lang.String text() throws javax.servlet.jsp.JspException
JspException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |