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$

字段摘要
static String TEMPLATE
           
 
从类 org.apache.struts2.components.Component 继承的字段
COMPONENT_STACK
 
构造方法摘要
UpDownSelect(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
方法摘要
 void evaluateParams()
           
 String getAllowMoveDown()
           
 String getAllowMoveUp()
           
 String getAllowSelectAll()
           
 String getDefaultTemplate()
          A contract that requires each concrete UI Tag to specify which template should be used as a default.
 String getMoveDownLabel()
           
 String getMoveUpLabel()
           
 String getSelectAllLabel()
           
 void setAllowMoveDown(String allowMoveDown)
           
 void setAllowMoveUp(String allowMoveUp)
           
 void setAllowSelectAll(String allowSelectAll)
           
 void setMoveDownLabel(String moveDownLabel)
           
 void setMoveUpLabel(String moveUpLabel)
           
 void setSelectAllLabel(String selectAllLabel)
           
 
从类 org.apache.struts2.components.Select 继承的方法
evaluateExtraParams, setEmptyOption, setHeaderKey, setHeaderValue, setMultiple, setSize
 
从类 org.apache.struts2.components.ListUIBean 继承的方法
contains, setList, setListCssClass, setListCssStyle, setListKey, setListTitle, setListValue, setThrowExceptionOnNullValueAttribute
 
从类 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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

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)