org.apache.struts2.components
类 OptGroup
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.OptGroup
public class OptGroup
- extends Component
Create a optgroup component which needs to resides within a select tag.
This component is to be used within a Select component.
<s:select label="My Selection"
name="mySelection"
value="%{'POPEYE'}"
list="%{#{'SUPERMAN':'Superman', 'SPIDERMAN':'spiderman'}}">
<s:optgroup label="Adult"
list="%{#{'SOUTH_PARK':'South Park'}}" />
<s:optgroup label="Japanese"
list="%{#{'POKEMON':'pokemon','DIGIMON':'digimon','SAILORMOON':'Sailormoon'}}" />
</s:select>
构造方法摘要 |
OptGroup(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
从类 org.apache.struts2.components.Component 继承的方法 |
addAllParameters, addParameter, altSyntax, copyParams, getComponentStack, getParameters, getStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, start, usesBody |
INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
public static final String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
- 另请参见:
- 常量字段值
OptGroup
public OptGroup(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
setContainer
public void setContainer(com.opensymphony.xwork2.inject.Container container)
end
public boolean end(Writer writer,
String body)
- 从类
Component
复制的描述
- Callback for the end tag of this component.
Should the body be evaluated again?
NOTE: will pop component stack.
- 覆盖:
- 类
Component
中的 end
- 参数:
writer
- the output writer.body
- the rendered body.
- 返回:
- true if the body should be evaluated again
setLabel
public void setLabel(String label)
setDisabled
public void setDisabled(String disabled)
setList
public void setList(String list)
setListKey
public void setListKey(String listKey)
setListValue
public void setListValue(String listValue)