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>

 
 


字段摘要
static String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
           
 
从类 org.apache.struts2.components.Component 继承的字段
COMPONENT_STACK
 
构造方法摘要
OptGroup(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
方法摘要
 boolean end(Writer writer, String body)
          Callback for the end tag of this component.
 void setContainer(com.opensymphony.xwork2.inject.Container container)
           
 void setDisabled(String disabled)
           
 void setLabel(String label)
           
 void setList(String list)
           
 void setListKey(String listKey)
           
 void setListValue(String listValue)
           
 
从类 org.apache.struts2.components.Component 继承的方法
addAllParameters, addParameter, altSyntax, copyParams, getComponentStack, getParameters, getStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, start, usesBody
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

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)