| |
|
| java.lang.Object org.apache.struts2.components.Component org.apache.struts2.components.UIBean org.apache.struts2.components.ListUIBean org.apache.struts2.components.DoubleListUIBean org.apache.struts2.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 -->
<s:optiontransferselect
label="Favourite Cartoons Characters"
name="leftSideCartoonCharacters"
list="{'Popeye', 'He-Man', 'Spiderman'}"
doubleName="rightSideCartoonCharacters"
doubleList="{'Superman', 'Mickey Mouse', 'Donald Duck'}"
/>
<-- possible configuration -->
<s: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"
/>
|
addAllToLeftOnclick | protected String addAllToLeftOnclick(Code) | | |
addAllToRightOnclick | protected String addAllToRightOnclick(Code) | | |
upDownOnLeftOnclick | protected String upDownOnLeftOnclick(Code) | | |
upDownOnRightOnclick | protected String upDownOnRightOnclick(Code) | | |
evaluateExtraParams | public void evaluateExtraParams()(Code) | | |
getAddAllToLeftLabel | public String getAddAllToLeftLabel()(Code) | | |
getAddAllToLeftOnclick | public String getAddAllToLeftOnclick()(Code) | | |
getAddAllToRightLabel | public String getAddAllToRightLabel()(Code) | | |
getAddAllToRightOnclick | public String getAddAllToRightOnclick()(Code) | | |
getAddToLeftOnclick | public String getAddToLeftOnclick()(Code) | | |
getAddToRightOnclick | public String getAddToRightOnclick()(Code) | | |
getAllowAddAllToLeft | public String getAllowAddAllToLeft()(Code) | | |
getAllowAddAllToRight | public String getAllowAddAllToRight()(Code) | | |
getAllowUpDownOnLeft | public String getAllowUpDownOnLeft()(Code) | | |
getAllowUpDownOnRight | public String getAllowUpDownOnRight()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
getSelectAllOnclick | public String getSelectAllOnclick()(Code) | | |
getUpDownOnLeftOnclick | public String getUpDownOnLeftOnclick()(Code) | | |
getUpDownOnRightOnclick | public String getUpDownOnRightOnclick()(Code) | | |
setAddAllToLeftLabel | public void setAddAllToLeftLabel(String addAllToLeftLabel)(Code) | | |
setAddAllToLeftOnclick | public void setAddAllToLeftOnclick(String addAllToLeftOnclick)(Code) | | |
setAddAllToRightLabel | public void setAddAllToRightLabel(String addAllToRightLabel)(Code) | | |
setAddAllToRightOnclick | public void setAddAllToRightOnclick(String addAllToRightOnclick)(Code) | | |
setAddToLeftLabel | public void setAddToLeftLabel(String addToLeftLabel)(Code) | | |
setAddToLeftOnclick | public void setAddToLeftOnclick(String addToLeftOnclick)(Code) | | |
setAddToRightLabel | public void setAddToRightLabel(String addToRightLabel)(Code) | | |
setAddToRightOnclick | public void setAddToRightOnclick(String addToRightOnclick)(Code) | | |
setAllowAddAllToLeft | public void setAllowAddAllToLeft(String allowAddAllToLeft)(Code) | | |
setAllowAddAllToRight | public void setAllowAddAllToRight(String allowAddAllToRight)(Code) | | |
setAllowAddToLeft | public void setAllowAddToLeft(String allowAddToLeft)(Code) | | |
setAllowAddToRight | public void setAllowAddToRight(String allowAddToRight)(Code) | | |
setAllowSelectAll | public void setAllowSelectAll(String allowSelectAll)(Code) | | |
setAllowUpDownOnLeft | public void setAllowUpDownOnLeft(String allowUpDownOnLeft)(Code) | | |
setAllowUpDownOnRight | public void setAllowUpDownOnRight(String allowUpDownOnRight)(Code) | | |
setButtonCssClass | public void setButtonCssClass(String buttonCssClass)(Code) | | |
setButtonCssStyle | public void setButtonCssStyle(String buttonCssStyle)(Code) | | |
setLeftDownLabel | public void setLeftDownLabel(String leftDownLabel)(Code) | | |
setLeftTitle | public void setLeftTitle(String leftTitle)(Code) | | |
setLeftUpLabel | public void setLeftUpLabel(String leftUpLabel)(Code) | | |
setRightDownLabel | public void setRightDownLabel(String rightDownlabel)(Code) | | |
setRightTitle | public void setRightTitle(String rightTitle)(Code) | | |
setRightUpLabel | public void setRightUpLabel(String rightUpLabel)(Code) | | |
setSelectAllLabel | public void setSelectAllLabel(String selectAllLabel)(Code) | | |
setSelectAllOnclick | public void setSelectAllOnclick(String selectAllOnclick)(Code) | | |
setUpDownOnLeftOnclick | public void setUpDownOnLeftOnclick(String upDownOnLeftOnclick)(Code) | | |
setUpDownOnRightOnclick | public void setUpDownOnRightOnclick(String upDownOnRightOnclick)(Code) | | |
Methods inherited from org.apache.struts2.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)(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 forceAddSchemeHostAndPort, boolean escapeAmp)(Code)(Java Doc) protected String determineNamespace(String namespace, ValueStack 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 StrutsException 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 ValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setActionMapper(ActionMapper mapper)(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)
|
|
|
|