Methods Summary |
---|
public void | evaluateExtraParams()
super.evaluateExtraParams();
Object doubleValue = null;
// override DoubleListUIBean's
if (doubleList != null) {
doubleValue = findValue(doubleList);
addParameter("doubleList", doubleValue);
}
if (size == null || size.trim().length() <= 0) {
addParameter("size", "15");
}
if (doubleSize == null || doubleSize.trim().length() <= 0) {
addParameter("doubleSize", "15");
}
if (multiple == null || multiple.trim().length() <= 0) {
addParameter("multiple", Boolean.TRUE);
}
if (doubleMultiple == null || doubleMultiple.trim().length() <= 0) {
addParameter("doubleMultiple", Boolean.TRUE);
}
// buttonCssClass
if (buttonCssClass != null && buttonCssClass.trim().length() > 0) {
addParameter("buttonCssClass", buttonCssClass);
}
// buttonCssStyle
if (buttonCssStyle != null && buttonCssStyle.trim().length() > 0) {
addParameter("buttonCssStyle", buttonCssStyle);
}
// allowSelectAll
addParameter("allowSelectAll",
allowSelectAll != null ? findValue(allowSelectAll, Boolean.class) : Boolean.TRUE);
// allowAddToLeft
addParameter("allowAddToLeft",
allowAddToLeft != null ? findValue(allowAddToLeft, Boolean.class) : Boolean.TRUE);
// allowAddToRight
addParameter("allowAddToRight",
allowAddToRight != null ? findValue(allowAddToRight, Boolean.class) : Boolean.TRUE);
// allowAddAllToLeft
addParameter("allowAddAllToLeft",
allowAddAllToLeft != null ? findValue(allowAddAllToLeft, Boolean.class) : Boolean.TRUE);
// allowAddAllToRight
addParameter("allowAddAllToRight",
allowAddAllToRight != null ? findValue(allowAddAllToRight, Boolean.class) : Boolean.TRUE);
// allowUpDownOnLeft
addParameter("allowUpDownOnLeft",
allowUpDownOnLeft != null ? findValue(allowUpDownOnLeft, Boolean.class) : Boolean.TRUE);
// allowUpDownOnRight
addParameter("allowUpDownOnRight",
allowUpDownOnRight != null ? findValue(allowUpDownOnRight, Boolean.class) : Boolean.TRUE);
// leftTitle
if (leftTitle != null) {
addParameter("leftTitle", findValue(leftTitle, String.class));
}
// rightTitle
if (rightTitle != null) {
addParameter("rightTitle", findValue(rightTitle, String.class));
}
// addToLeftLabel
addParameter("addToLeftLabel",
addToLeftLabel != null ? findValue(addToLeftLabel, String.class) : "<-" );
// addToRightLabel
addParameter("addToRightLabel",
addToRightLabel != null ? findValue(addToRightLabel, String.class) : "->");
// addAllToLeftLabel
addParameter("addAllToLeftLabel",
addAllToLeftLabel != null ? findValue(addAllToLeftLabel, String.class) : "<<--");
// addAllToRightLabel
addParameter("addAllToRightLabel",
addAllToRightLabel != null ? findValue(addAllToRightLabel, String.class) : "-->>");
// selectAllLabel
addParameter("selectAllLabel",
selectAllLabel != null ? findValue(selectAllLabel, String.class) : "<*>");
// leftUpLabel
addParameter("leftUpLabel",
leftUpLabel != null ? findValue(leftUpLabel, String.class) : "^");
// leftDownLabel
addParameter("leftDownLabel",
leftDownlabel != null ? findValue(leftDownlabel, String.class) : "v");
// rightUpLabel
addParameter("rightUpLabel",
rightUpLabel != null ? findValue(rightUpLabel, String.class) : "^");
// rightDownlabel
addParameter("rightDownLabel",
rightDownLabel != null ? findValue(rightDownLabel, String.class) : "v");
// selectAllOnclick
addParameter("selectAllOnclick",
selectAllOnclick != null ? findValue(selectAllOnclick, String.class) : "");
// addToLeftOnclick
addParameter("addToLeftOnclick",
addToLeftOnclick != null ? findValue(addToLeftOnclick, String.class) : "");
// addToRightOnclick
addParameter("addToRightOnclick",
addToRightOnclick != null ? findValue(addToRightOnclick, String.class) : "");
// addAllToLeftOnclick
addParameter("addAllToLeftOnclick",
addAllToLeftOnclick != null ? findValue(addAllToLeftOnclick, String.class) : "");
// addAllToRightOnclick
addParameter("addAllToRightOnclick",
addAllToRightOnclick != null ? findValue(addAllToRightOnclick, String.class) : "");
// upDownOnLeftOnclick
addParameter("upDownOnLeftOnclick",
upDownOnLeftOnclick != null ? findValue(upDownOnLeftOnclick, String.class) : "");
// upDownOnRightOnclick
addParameter("upDownOnRightOnclick",
upDownOnRightOnclick != null ? findValue(upDownOnRightOnclick, String.class) : "");
// inform the form component our select tag infos, so they know how to select
// its elements upon onsubmit
Form formAncestor = (Form) findAncestor(Form.class);
if (formAncestor != null) {
// inform ancestor form that we are having a customOnsubmit (see form-close.ftl [simple theme])
enableAncestorFormCustomOnsubmit();
// key -> select tag id, value -> headerKey (if exists)
Map formOptiontransferselectIds = (Map) formAncestor.getParameters().get("optiontransferselectIds");
Map formOptiontransferselectDoubleIds = (Map) formAncestor.getParameters().get("optiontransferselectDoubleIds");
// init lists
if (formOptiontransferselectIds == null) {
formOptiontransferselectIds = new LinkedHashMap();
}
if (formOptiontransferselectDoubleIds == null) {
formOptiontransferselectDoubleIds = new LinkedHashMap();
}
// id
String tmpId = (String) getParameters().get("id");
String tmpHeaderKey = (String) getParameters().get("headerKey");
if (tmpId != null && (! formOptiontransferselectIds.containsKey(tmpId))) {
formOptiontransferselectIds.put(tmpId, tmpHeaderKey);
}
// doubleId
String tmpDoubleId = (String) getParameters().get("doubleId");
String tmpDoubleHeaderKey = (String) getParameters().get("doubleHeaderKey");
if (tmpDoubleId != null && (! formOptiontransferselectDoubleIds.containsKey(tmpDoubleId))) {
formOptiontransferselectDoubleIds.put(tmpDoubleId, tmpDoubleHeaderKey);
}
formAncestor.getParameters().put("optiontransferselectIds", formOptiontransferselectIds);
formAncestor.getParameters().put("optiontransferselectDoubleIds", formOptiontransferselectDoubleIds);
}
else {
_log.warn("form enclosing optiontransferselect "+this+" not found, auto select upon form submit of optiontransferselect will not work");
}
|
public java.lang.String | getAddAllToLeftLabel()
return addAllToLeftLabel;
|
public java.lang.String | getAddAllToLeftOnclick()
return addAllToLeftOnclick;
|
public java.lang.String | getAddAllToRightLabel()
return addAllToRightLabel;
|
public java.lang.String | getAddAllToRightOnclick()
return addAllToRightOnclick;
|
public java.lang.String | getAddToLeftLabel()
return addToLeftLabel;
|
public java.lang.String | getAddToLeftOnclick()
return addToLeftOnclick;
|
public java.lang.String | getAddToRightLabel()
return addToRightLabel;
|
public java.lang.String | getAddToRightOnclick()
return addToRightOnclick;
|
public java.lang.String | getAllowAddAllToLeft()
return allowAddAllToLeft;
|
public java.lang.String | getAllowAddAllToRight()
return allowAddAllToRight;
|
public java.lang.String | getAllowAddToLeft()
return allowAddToLeft;
|
public java.lang.String | getAllowAddToRight()
return allowAddToRight;
|
public java.lang.String | getAllowSelectAll()
return this.allowSelectAll;
|
public java.lang.String | getAllowUpDownOnLeft()
return this.allowUpDownOnLeft;
|
public java.lang.String | getAllowUpDownOnRight()
return this.allowUpDownOnRight;
|
public java.lang.String | getButtonCssClass()
return buttonCssClass;
|
public java.lang.String | getButtonCssStyle()
return this.buttonCssStyle;
|
protected java.lang.String | getDefaultTemplate()
return TEMPLATE;
|
public java.lang.String | getLeftDownLabel()
return this.leftDownlabel;
|
public java.lang.String | getLeftTitle()
return leftTitle;
|
public java.lang.String | getLeftUpLabel()
return this.leftUpLabel;
|
public java.lang.String | getRightDownLabel()
return rightDownLabel;
|
public java.lang.String | getRightTitle()
return rightTitle;
|
public java.lang.String | getRightUpLabel()
return this.rightUpLabel;
|
public java.lang.String | getSelectAllLabel()
return this.selectAllLabel;
|
public java.lang.String | getSelectAllOnclick()
return this.selectAllOnclick;
|
public java.lang.String | getUpDownOnLeftOnclick()
return this.upDownOnLeftOnclick;
|
public java.lang.String | getUpDownOnRightOnclick()
return this.upDownOnRightOnclick;
|
public void | setAddAllToLeftLabel(java.lang.String addAllToLeftLabel)
this.addAllToLeftLabel = addAllToLeftLabel;
|
public void | setAddAllToLeftOnclick(java.lang.String addAllToLeftOnclick)
this.addAllToLeftOnclick = addAllToLeftOnclick;
|
public void | setAddAllToRightLabel(java.lang.String addAllToRightLabel)
this.addAllToRightLabel = addAllToRightLabel;
|
public void | setAddAllToRightOnclick(java.lang.String addAllToRightOnclick)
this.addAllToRightOnclick = addAllToRightOnclick;
|
public void | setAddToLeftLabel(java.lang.String addToLeftLabel)
this.addToLeftLabel = addToLeftLabel;
|
public void | setAddToLeftOnclick(java.lang.String addToLeftOnclick)
this.addToLeftOnclick = addToLeftOnclick;
|
public void | setAddToRightLabel(java.lang.String addToRightLabel)
this.addToRightLabel = addToRightLabel;
|
public void | setAddToRightOnclick(java.lang.String addToRightOnclick)
this.addToRightOnclick = addToRightOnclick;
|
public void | setAllowAddAllToLeft(java.lang.String allowAddAllToLeft)
this.allowAddAllToLeft = allowAddAllToLeft;
|
public void | setAllowAddAllToRight(java.lang.String allowAddAllToRight)
this.allowAddAllToRight = allowAddAllToRight;
|
public void | setAllowAddToLeft(java.lang.String allowAddToLeft)
this.allowAddToLeft = allowAddToLeft;
|
public void | setAllowAddToRight(java.lang.String allowAddToRight)
this.allowAddToRight = allowAddToRight;
|
public void | setAllowSelectAll(java.lang.String allowSelectAll)
this.allowSelectAll = allowSelectAll;
|
public void | setAllowUpDownOnLeft(java.lang.String allowUpDownOnLeft)
this.allowUpDownOnLeft = allowUpDownOnLeft;
|
public void | setAllowUpDownOnRight(java.lang.String allowUpDownOnRight)
this.allowUpDownOnRight = allowUpDownOnRight;
|
public void | setButtonCssClass(java.lang.String buttonCssClass)
this.buttonCssClass = buttonCssClass;
|
public void | setButtonCssStyle(java.lang.String buttonCssStyle)
this.buttonCssStyle = buttonCssStyle;
|
public void | setLeftDownLabel(java.lang.String leftDownLabel)
this.leftDownlabel = leftDownLabel;
|
public void | setLeftTitle(java.lang.String leftTitle)
this.leftTitle = leftTitle;
|
public void | setLeftUpLabel(java.lang.String leftUpLabel)
this.leftUpLabel = leftUpLabel;
|
public void | setRightDownLabel(java.lang.String rightDownlabel)
this.rightDownLabel = rightDownlabel;
|
public void | setRightTitle(java.lang.String rightTitle)
this.rightTitle = rightTitle;
|
public void | setRightUpLabel(java.lang.String rightUpLabel)
this.rightUpLabel = rightUpLabel;
|
public void | setSelectAllLabel(java.lang.String selectAllLabel)
this.selectAllLabel = selectAllLabel;
|
public void | setSelectAllOnclick(java.lang.String selectAllOnclick)
this.selectAllOnclick = selectAllOnclick;
|
public void | setUpDownOnLeftOnclick(java.lang.String upDownOnLeftOnclick)
this.upDownOnLeftOnclick = upDownOnLeftOnclick;
|
public void | setUpDownOnRightOnclick(java.lang.String upDownOnRightOnclick)
this.upDownOnRightOnclick = upDownOnRightOnclick;
|