| |
|
| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.ListUIBean com.opensymphony.webwork.components.DoubleListUIBean com.opensymphony.webwork.components.OptionTransferSelect
OptionTransferSelect | public class OptionTransferSelect extends DoubleListUIBean (Code) | |
Create a option transfer select component which is basically two <select ...>
tag with buttons in the middle of them allowing options in each of the
<select ...> to be moved between themselves. Will auto-select all its
elements upon its containing form submision.
NOTE: The id and doubleId need not be supplied as they will generated provided
that the optiontransferselect tag is being used in a form tag. The generated id
and doubleId will be <form_id>_<optiontransferselect_doubleName> and
<form_id>_<optiontransferselect_doubleName> respectively.
<-- minimum configuration -->
<ww:optiontransferselect
label="Favourite Cartoons Characters"
name="leftSideCartoonCharacters"
list="{'Popeye', 'He-Man', 'Spiderman'}"
doubleName="rightSideCartoonCharacters"
doubleList="{'Superman', 'Mickey Mouse', 'Donald Duck'}"
/>
<-- possible configuration -->
<ww:optiontransferselect
label="Favourite Cartoons Characters"
name="leftSideCartoonCharacters"
leftTitle="Left Title"
rightTitle="Right Title"
list="{'Popeye', 'He-Man', 'Spiderman'}"
multiple="true"
headerKey="headerKey"
headerValue="--- Please Select ---"
emptyOption="true"
doubleList="{'Superman', 'Mickey Mouse', 'Donald Duck'}"
doubleName="rightSideCartoonCharacters"
doubleHeaderKey="doubleHeaderKey"
doubleHeaderValue="--- Please Select ---"
doubleEmptyOption="true"
doubleMultiple="true"
/>
author: tm_jee version: $Date: 2006-03-18 17:28:55 +0100 (Sat, 18 Mar 2006) $ $Id: OptionTransferSelect.java 2468 2006-03-18 16:28:55Z rgielen $ |
evaluateExtraParams | public void evaluateExtraParams()(Code) | | |
getAddAllToLeftLabel | public String getAddAllToLeftLabel()(Code) | | |
getAddAllToRightLabel | public String getAddAllToRightLabel()(Code) | | |
getAllowAddAllToLeft | public String getAllowAddAllToLeft()(Code) | | |
getAllowAddAllToRight | public String getAllowAddAllToRight()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setAddAllToLeftLabel | public void setAddAllToLeftLabel(String addAllToLeftLabel)(Code) | | set Add To Left button label
|
setAddAllToRightLabel | public void setAddAllToRightLabel(String addAllToRightLabel)(Code) | | set Add All To Right button label
|
setAddToLeftLabel | public void setAddToLeftLabel(String addToLeftLabel)(Code) | | set Add To Left button label
|
setAddToRightLabel | public void setAddToRightLabel(String addToRightLabel)(Code) | | set Add To Right button label
|
setAllowAddAllToLeft | public void setAllowAddAllToLeft(String allowAddAllToLeft)(Code) | | enable Add All To Left button
|
setAllowAddAllToRight | public void setAllowAddAllToRight(String allowAddAllToRight)(Code) | | enable Add All To Right button
|
setAllowAddToLeft | public void setAllowAddToLeft(String allowAddToLeft)(Code) | | enable Add To Left button
|
setAllowAddToRight | public void setAllowAddToRight(String allowAddToRight)(Code) | | enable Add To Right button
|
setAllowSelectAll | public void setAllowSelectAll(String allowSelectAll)(Code) | | enable Select All button
|
setButtonCssClass | public void setButtonCssClass(String buttonCssClass)(Code) | | set buttons css class
|
setButtonCssStyle | public void setButtonCssStyle(String buttonCssStyle)(Code) | | set button css style
|
setLeftTitle | public void setLeftTitle(String leftTitle)(Code) | | set Left title
|
setRightTitle | public void setRightTitle(String rightTitle)(Code) | | set Right title
|
setSelectAllLabel | public void setSelectAllLabel(String selectAllLabel)(Code) | | set Select All button label
|
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)
|
|
|
|