org.apache.struts2.components
类 UpDownSelect
java.lang.Object
  
org.apache.struts2.components.Component
      
org.apache.struts2.components.UIBean
          
org.apache.struts2.components.ListUIBean
              
org.apache.struts2.components.Select
                  
org.apache.struts2.components.UpDownSelect
public class UpDownSelect
- extends Select
 
 Create a Select component with buttons to move the elements in the select component
 up and down. When the containing form is submited, its elements will be submitted in
 the order they are arranged (top to bottom).
 
 
 
 
 <!-- Example 1: simple example -->
 <s:updownselect
 list="#{'england':'England', 'america':'America', 'germany':'Germany'}"
 name="prioritisedFavouriteCountries"
 headerKey="-1"
 headerValue="--- Please Order Them Accordingly ---"
 emptyOption="true" />
 <!-- Example 2: more complex example -->
 <s:updownselect
 list="defaultFavouriteCartoonCharacters"
 name="prioritisedFavouriteCartoonCharacters"
 headerKey="-1"
 headerValue="--- Please Order ---"
 emptyOption="true"
 allowMoveUp="true"
 allowMoveDown="true"
 allowSelectAll="true"
 moveUpLabel="Move Up"
 moveDownLabel="Move Down"
 selectAllLabel="Select All" />
 
 
- 版本:
 
  - $Date$ $Id$
 
 
 
| 
构造方法摘要 | 
UpDownSelect(com.opensymphony.xwork2.util.ValueStack stack,
             javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response)
 
            | 
 
 
 
 
| 从类 org.apache.struts2.components.UIBean 继承的方法 | 
addFormParameter, copyParams, end, getId, getTemplate, getTemplateDir, getTheme, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue | 
 
| 从类 org.apache.struts2.components.Component 继承的方法 | 
addAllParameters, addParameter, altSyntax, getComponentStack, getParameters, getStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, start, usesBody | 
 
 
TEMPLATE
public static final String TEMPLATE
- 另请参见:
 - 常量字段值
 
UpDownSelect
public UpDownSelect(com.opensymphony.xwork2.util.ValueStack stack,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
getDefaultTemplate
public String getDefaultTemplate()
- 从类 
UIBean 复制的描述 
- A contract that requires each concrete UI Tag to specify which template should be used as a default.  For
 example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm".  This value
 not begin with a '/' unless you intend to make the path absolute rather than relative to the
 current theme.
 
- 返回:
 - The name of the template to be used as the default.
 
 
 
evaluateParams
public void evaluateParams()
- 覆盖:
 - 类 
UIBean 中的 evaluateParams 
 
 
getAllowMoveUp
public String getAllowMoveUp()
 
setAllowMoveUp
public void setAllowMoveUp(String allowMoveUp)
 
getAllowMoveDown
public String getAllowMoveDown()
 
setAllowMoveDown
public void setAllowMoveDown(String allowMoveDown)
 
getAllowSelectAll
public String getAllowSelectAll()
 
setAllowSelectAll
public void setAllowSelectAll(String allowSelectAll)
 
getMoveUpLabel
public String getMoveUpLabel()
 
setMoveUpLabel
public void setMoveUpLabel(String moveUpLabel)
 
getMoveDownLabel
public String getMoveDownLabel()
 
setMoveDownLabel
public void setMoveDownLabel(String moveDownLabel)
 
getSelectAllLabel
public String getSelectAllLabel()
 
setSelectAllLabel
public void setSelectAllLabel(String selectAllLabel)