|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlBaseTag
SelectOption
public class SelectOption
An option whose state is determined by its enclosing SelectOption.
<netui:form action="submit"> <netui:select dataSource="actionForm.selections" size="5"> <netui:selectOption value="red" /> <netui:selectOption value="blue" /> <netui:selectOption value="green" /> <netui:selectOption value="yellow" /> <netui:selectOption value="orange" /> </netui:select> <netui:button type="submit" value="Submit"/> </netui:form>
Field Summary |
---|
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
SelectOption()
|
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. |
boolean |
getDisabled()
Gets if this option is disabled or not. |
protected AbstractHtmlState |
getState()
This method will return the state associated with the tag. |
String |
getTagName()
Return the name of the Tag. |
protected boolean |
isDisabled()
This method will a boolean indicating if the control is disabled or not. |
protected void |
localRelease()
Release any acquired resources. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setDisabled(boolean disabled)
Set if this option is disabled or not. |
void |
setRepeatingType(String repeatingType)
If the selectOption is being used inside a repeating Select , this defines the Select
attribute used to generate the option elements. |
void |
setValue(String value)
Set the value of this SelectOption. |
Methods inherited from class HtmlBaseTag |
---|
getJavaScriptAttribute, getOnClick, getTagId, renderDefaultNameAndId, renderNameAndId, setDir, setLang, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStateAttribute, setStyle, setStyleClass, setTagId, setTitle |
Methods inherited from class BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public SelectOption()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractClassicTag
public void setAttribute(String name, String value, String facet) throws JspException
value
attribute.
setAttribute
in interface IAttributeConsumer
setAttribute
in class HtmlBaseTag
name
- The name of the attributevalue
- The value of the attributefacet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
- A JspException may be thrown if there is an error setting the attribute.protected AbstractHtmlState getState()
getState
in class HtmlBaseTag
AbstractHtmlState
class.public boolean getDisabled()
public void setDisabled(boolean disabled)
disabled
- "true" or "false"protected boolean isDisabled() throws JspException
true
if the control is disabled.
JspException
- on an exception.public void setRepeatingType(String repeatingType)
Select
, this defines the Select
attribute used to generate the option elements.
repeatingType
- Value of "option", "dataSource", "default", (for optionsDataSource, dataSource,
and defaultValue attributes respectively) or "null"public void setValue(String value) throws JspException
value
- the SelectOption value
JspException
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredprotected void localRelease()
localRelease
in class HtmlBaseTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |