Methods Summary |
---|
public void | evaluateExtraParams()
super.evaluateExtraParams();
if (size == null || size.trim().length() <= 0) {
addParameter("size", "5");
}
if (multiple == null || multiple.trim().length() <= 0) {
addParameter("multiple", Boolean.TRUE);
}
// allowUpDown
addParameter("allowUpDown", allowUpDown != null ? findValue(allowUpDown, Boolean.class) : Boolean.TRUE);
// allowRemoveAll
addParameter("allowRemoveAll", allowRemoveAll != null ? findValue(allowRemoveAll, Boolean.class) : Boolean.TRUE);
// leftTitle
if (leftTitle != null) {
addParameter("leftTitle", findValue(leftTitle, String.class));
}
// rightTitle
if (rightTitle != null) {
addParameter("rightTitle", findValue(rightTitle, String.class));
}
// buttonCssClass
if (buttonCssClass != null && buttonCssClass.trim().length() > 0) {
addParameter("buttonCssClass", buttonCssClass);
}
// buttonCssStyle
if (buttonCssStyle != null && buttonCssStyle.trim().length() > 0) {
addParameter("buttonCssStyle", buttonCssStyle);
}
// addLabel
addParameter("addLabel", addLabel != null ? findValue(addLabel, String.class) : "->" );
// removeLabel
addParameter("removeLabel", removeLabel != null ? findValue(removeLabel, String.class) : "<-");
// removeAllLabel
addParameter("removeAllLabel", removeAllLabel != null ? findValue(removeAllLabel, String.class) : "<<--");
// upLabel
addParameter("upLabel", upLabel != null ? findValue(upLabel, String.class) : "^");
// leftDownLabel
addParameter("downLabel", downLabel != null ? findValue(downLabel, String.class) : "v");
if ((headerKey != null) && (headerValue != null)) {
addParameter("headerKey", findString(headerKey));
addParameter("headerValue", findString(headerValue));
}
// 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 formInputtransferselectIds = (Map) formAncestor.getParameters().get("inputtransferselectIds");
// init lists
if (formInputtransferselectIds == null) {
formInputtransferselectIds = new LinkedHashMap();
}
// id
String tmpId = (String) getParameters().get("id");
String tmpHeaderKey = (String) getParameters().get("headerKey");
if (tmpId != null && (! formInputtransferselectIds.containsKey(tmpId))) {
formInputtransferselectIds.put(tmpId, tmpHeaderKey);
}
formAncestor.getParameters().put("inputtransferselectIds", formInputtransferselectIds);
}
else {
_log.warn("form enclosing inputtransferselect "+this+" not found, auto select upon form submit of inputtransferselect will not work");
}
|
public java.lang.String | getAddLabel()
return addLabel;
|
public java.lang.String | getAllowRemoveAll()
return allowRemoveAll;
|
public java.lang.String | getAllowUpDown()
return allowUpDown;
|
public java.lang.String | getButtonCssClass()
return buttonCssClass;
|
public java.lang.String | getButtonCssStyle()
return buttonCssStyle;
|
protected java.lang.String | getDefaultTemplate()
return TEMPLATE;
|
public java.lang.String | getDownLabel()
return downLabel;
|
public java.lang.String | getHeaderKey()
return headerKey;
|
public java.lang.String | getHeaderValue()
return headerValue;
|
public java.lang.String | getLeftTitle()
return leftTitle;
|
public java.lang.String | getMultiple()
return multiple;
|
public java.lang.String | getRemoveAllLabel()
return removeAllLabel;
|
public java.lang.String | getRemoveLabel()
return removeLabel;
|
public java.lang.String | getRightTitle()
return rightTitle;
|
public java.lang.String | getSize()
return size;
|
public java.lang.String | getUpLabel()
return upLabel;
|
public void | setAddLabel(java.lang.String addLabel)
this.addLabel = addLabel;
|
public void | setAllowRemoveAll(java.lang.String allowRemoveAll)
this.allowRemoveAll = allowRemoveAll;
|
public void | setAllowUpDown(java.lang.String allowUpDown)
this.allowUpDown = allowUpDown;
|
public void | setButtonCssClass(java.lang.String buttonCssClass)
this.buttonCssClass = buttonCssClass;
|
public void | setButtonCssStyle(java.lang.String buttonCssStyle)
this.buttonCssStyle = buttonCssStyle;
|
public void | setDownLabel(java.lang.String downLabel)
this.downLabel = downLabel;
|
public void | setHeaderKey(java.lang.String headerKey)
this.headerKey = headerKey;
|
public void | setHeaderValue(java.lang.String headerValue)
this.headerValue = headerValue;
|
public void | setLeftTitle(java.lang.String leftTitle)
this.leftTitle = leftTitle;
|
public void | setMultiple(java.lang.String multiple)
this.multiple = multiple;
|
public void | setRemoveAllLabel(java.lang.String removeAllLabel)
this.removeAllLabel = removeAllLabel;
|
public void | setRemoveLabel(java.lang.String removeLabel)
this.removeLabel = removeLabel;
|
public void | setRightTitle(java.lang.String rightTitle)
this.rightTitle = rightTitle;
|
public void | setSize(java.lang.String size)
this.size = size;
|
public void | setUpLabel(java.lang.String upLabel)
this.upLabel = upLabel;
|