public class OptionTransferSelect extends DoubleListUIBean
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_nameame> 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" />
Modifier and Type | Field and Description |
---|---|
protected String |
addAllToLeftLabel |
protected String |
addAllToLeftOnclick |
protected String |
addAllToRightLabel |
protected String |
addAllToRightOnclick |
protected String |
addToLeftLabel |
protected String |
addToLeftOnclick |
protected String |
addToRightLabel |
protected String |
addToRightOnclick |
protected String |
allowAddAllToLeft |
protected String |
allowAddAllToRight |
protected String |
allowAddToLeft |
protected String |
allowAddToRight |
protected String |
allowSelectAll |
protected String |
allowUpDownOnLeft |
protected String |
allowUpDownOnRight |
protected String |
buttonCssClass |
protected String |
buttonCssStyle |
protected String |
leftDownlabel |
protected String |
leftTitle |
protected String |
leftUpLabel |
protected String |
rightDownLabel |
protected String |
rightTitle |
protected String |
rightUpLabel |
protected String |
selectAllLabel |
protected String |
selectAllOnclick |
protected String |
upDownOnLeftOnclick |
protected String |
upDownOnRightOnclick |
doubleAccesskey, doubleCssClass, doubleCssStyle, doubleDisabled, doubleEmptyOption, doubleHeaderKey, doubleHeaderValue, doubleId, doubleList, doubleListCssClass, doubleListCssStyle, doubleListKey, doubleListTitle, doubleListValue, doubleMultiple, doubleName, doubleOnblur, doubleOnchange, doubleOnclick, doubleOndblclick, doubleOnfocus, doubleOnkeydown, doubleOnkeypress, doubleOnkeyup, doubleOnmousedown, doubleOnmousemove, doubleOnmouseout, doubleOnmouseover, doubleOnmouseup, doubleOnselect, doubleSize, doubleValue, emptyOption, formName, headerKey, headerValue, multiple, size
list, listCssClass, listCssStyle, listKey, listLabelKey, listTitle, listValue, listValueKey, throwExceptionOnNullValueAttribute
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value
actionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailure
Constructor and Description |
---|
OptionTransferSelect(ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getDoubleCssClass, getDoubleCssStyle, getDoubleDisabled, getDoubleEmptyOption, getDoubleHeaderKey, getDoubleHeaderValue, getDoubleId, getDoubleList, getDoubleListKey, getDoubleListValue, getDoubleMultiple, getDoubleName, getDoubleOnblur, getDoubleOnchange, getDoubleOnclick, getDoubleOndblclick, getDoubleOnfocus, getDoubleOnkeydown, getDoubleOnkeypress, getDoubleOnkeyup, getDoubleOnmousedown, getDoubleOnmousemove, getDoubleOnmouseout, getDoubleOnmouseover, getDoubleOnmouseup, getDoubleOnselect, getDoubleSize, getDoubleValue, getFormName, setDoubleAccesskey, setDoubleCssClass, setDoubleCssStyle, setDoubleDisabled, setDoubleEmptyOption, setDoubleHeaderKey, setDoubleHeaderValue, setDoubleId, setDoubleList, setDoubleListCssClass, setDoubleListCssStyle, setDoubleListKey, setDoubleListTitle, setDoubleListValue, setDoubleMultiple, setDoubleName, setDoubleOnblur, setDoubleOnchange, setDoubleOnclick, setDoubleOndblclick, setDoubleOnfocus, setDoubleOnkeydown, setDoubleOnkeypress, setDoubleOnkeyup, setDoubleOnmousedown, setDoubleOnmousemove, setDoubleOnmouseout, setDoubleOnmouseover, setDoubleOnmouseup, setDoubleOnselect, setDoubleSize, setDoubleValue, setEmptyOption, setFormName, setHeaderKey, setHeaderValue, setMultiple, setSize
contains, getValueClassType, setList, setListCssClass, setListCssStyle, setListKey, setListLabelKey, setListTitle, setListValue, setListValueKey, setThrowExceptionOnNullValueAttribute
addFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getTemplate, getTemplateDir, getTheme, getTooltipConfig, mergeTemplate, populateComponentHtmlId, setAccesskey, setClass, 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, setStyle, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, escapeHtmlBody, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, start, stripExpressionIfAltSyntax, toString, usesBody
protected String allowAddToLeft
protected String allowAddToRight
protected String allowAddAllToLeft
protected String allowAddAllToRight
protected String allowSelectAll
protected String allowUpDownOnLeft
protected String allowUpDownOnRight
protected String leftTitle
protected String rightTitle
protected String buttonCssClass
protected String buttonCssStyle
protected String addToLeftLabel
protected String addToRightLabel
protected String addAllToLeftLabel
protected String addAllToRightLabel
protected String selectAllLabel
protected String leftUpLabel
protected String leftDownlabel
protected String rightUpLabel
protected String rightDownLabel
protected String addToLeftOnclick
protected String addToRightOnclick
protected String addAllToLeftOnclick
protected String addAllToRightOnclick
protected String selectAllOnclick
protected String upDownOnLeftOnclick
protected String upDownOnRightOnclick
public OptionTransferSelect(ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected String getDefaultTemplate()
UIBean
getDefaultTemplate
in class UIBean
public void evaluateExtraParams()
evaluateExtraParams
in class DoubleListUIBean
public String getAddAllToLeftLabel()
public void setAddAllToLeftLabel(String addAllToLeftLabel)
public String getAddAllToRightLabel()
public void setAddAllToRightLabel(String addAllToRightLabel)
public String getAddToLeftLabel()
public void setAddToLeftLabel(String addToLeftLabel)
public String getAddToRightLabel()
public void setAddToRightLabel(String addToRightLabel)
public String getAllowAddAllToLeft()
public void setAllowAddAllToLeft(String allowAddAllToLeft)
public String getAllowAddAllToRight()
public void setAllowAddAllToRight(String allowAddAllToRight)
public String getAllowAddToLeft()
public void setAllowAddToLeft(String allowAddToLeft)
public String getAllowAddToRight()
public void setAllowAddToRight(String allowAddToRight)
public String getLeftTitle()
public void setAllowUpDownOnLeft(String allowUpDownOnLeft)
public String getAllowUpDownOnLeft()
public void setAllowUpDownOnRight(String allowUpDownOnRight)
public String getAllowUpDownOnRight()
public void setLeftTitle(String leftTitle)
public String getRightTitle()
public void setRightTitle(String rightTitle)
public void setAllowSelectAll(String allowSelectAll)
public String getAllowSelectAll()
public void setSelectAllLabel(String selectAllLabel)
public String getSelectAllLabel()
public void setButtonCssClass(String buttonCssClass)
public String getButtonCssClass()
public void setButtonCssStyle(String buttonCssStyle)
public String getButtonCssStyle()
public void setLeftUpLabel(String leftUpLabel)
public String getLeftUpLabel()
public void setLeftDownLabel(String leftDownLabel)
public String getLeftDownLabel()
public void setRightUpLabel(String rightUpLabel)
public String getRightUpLabel()
public void setRightDownLabel(String rightDownlabel)
public String getRightDownLabel()
public String getAddAllToLeftOnclick()
public void setAddAllToLeftOnclick(String addAllToLeftOnclick)
public String getAddAllToRightOnclick()
public void setAddAllToRightOnclick(String addAllToRightOnclick)
public String getAddToLeftOnclick()
public void setAddToLeftOnclick(String addToLeftOnclick)
public String getAddToRightOnclick()
public void setAddToRightOnclick(String addToRightOnclick)
public void setUpDownOnLeftOnclick(String upDownOnLeftOnclick)
public String getUpDownOnLeftOnclick()
public void setUpDownOnRightOnclick(String upDownOnRightOnclick)
public String getUpDownOnRightOnclick()
public void setSelectAllOnclick(String selectAllOnclick)
public String getSelectAllOnclick()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.