|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.components.Component
org.apache.struts2.components.OptGroup
public class OptGroup
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>
Field Summary | |
---|---|
static java.lang.String |
INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
|
protected ListUIBean |
internalUiBean
|
protected javax.servlet.http.HttpServletRequest |
req
|
protected javax.servlet.http.HttpServletResponse |
res
|
Fields inherited from class org.apache.struts2.components.Component |
---|
COMPONENT_STACK, id, parameters, stack |
Constructor Summary | |
---|---|
OptGroup(com.opensymphony.xwork2.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Method Summary | |
---|---|
boolean |
end(java.io.Writer writer,
java.lang.String body)
Callback for the end tag of this component. |
void |
setDisabled(java.lang.String disabled)
Set the disable attribute. |
void |
setLabel(java.lang.String label)
Set the label attribute. |
void |
setList(java.lang.String list)
Set the list attribute. |
void |
setListKey(java.lang.String listKey)
Set the listKey attribute. |
void |
setListValue(java.lang.String listValue)
Set the listValue attribute. |
Methods inherited from class org.apache.struts2.components.Component |
---|
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, start, toString, usesBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse res
protected ListUIBean internalUiBean
Constructor Detail |
---|
public OptGroup(com.opensymphony.xwork2.util.OgnlValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
Method Detail |
---|
public boolean end(java.io.Writer writer, java.lang.String body)
Component
end
in class Component
writer
- the output writer.body
- the rendered body.
public void setLabel(java.lang.String label)
public void setDisabled(java.lang.String disabled)
public void setList(java.lang.String list)
public void setListKey(java.lang.String listKey)
public void setListValue(java.lang.String listValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |