| |
|
| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.ListUIBean com.opensymphony.webwork.components.Select com.opensymphony.webwork.components.UpDownSelect
UpDownSelect | public class UpDownSelect extends Select (Code) | |
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 -->
<ww:updownselect
list="#{'england':'England', 'america':'America', 'germany':'Germany'}"
name="prioritisedFavouriteCountries"
headerKey="-1"
headerValue="--- Please Order Them Accordingly ---"
emptyOption="true" />
<!-- Example 2: more complex example -->
<ww: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" />
author: tm_jee version: $Date: 2006-03-18 17:28:55 +0100 (Sat, 18 Mar 2006) $ $Id: UpDownSelect.java 2468 2006-03-18 16:28:55Z rgielen $ |
evaluateParams | public void evaluateParams()(Code) | | |
setAllowMoveDown | public void setAllowMoveDown(String allowMoveDown)(Code) | | Whether move down button should be displayed
|
setAllowMoveUp | public void setAllowMoveUp(String allowMoveUp)(Code) | | Whether move up button should be displayed
|
setAllowSelectAll | public void setAllowSelectAll(String allowSelectAll)(Code) | | Whether or not select all button should be displayed
|
setMoveDownLabel | public void setMoveDownLabel(String moveDownLabel)(Code) | | Text to display on the move down button
|
setMoveUpLabel | public void setMoveUpLabel(String moveUpLabel)(Code) | | Text to display on the move up button
|
setSelectAllLabel | public void setSelectAllLabel(String selectAllLabel)(Code) | | Text to display on the select all button
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|
|