Methods Summary |
---|
public void | evaluateExtraParams()
super.evaluateExtraParams();
if (align == null) {
align = "right";
}
String submitType = BUTTONTYPE_INPUT;
if (type != null && (BUTTONTYPE_BUTTON.equalsIgnoreCase(type) || (supportsImageType() && BUTTONTYPE_IMAGE.equalsIgnoreCase(type))))
{
submitType = type;
}
//super.evaluateParams();
addParameter("type", submitType);
if (!BUTTONTYPE_INPUT.equals(submitType) && (label == null)) {
addParameter("label", getParameters().get("nameValue"));
}
if (action != null || method != null) {
String name;
if (action != null) {
name = "action:" + findString(action);
if (method != null) {
name += "!" + findString(method);
}
} else {
name = "method:" + findString(method);
}
addParameter("name", name);
}
addParameter("align", findString(align));
|
protected void | populateComponentHtmlId(Form form)Override UIBean's implementation, such that component Html id is determined
in the following order :-
- This component id attribute
- [containing_form_id]_[this_component_name]
- [containing_form_id]_[this_component_action]_[this_component_method]
- [containing_form_id]_[this_component_method]
- [this_component_name]
- [this_component_action]_[this_component_method]
- [this_component_method]
- [an increasing sequential number unique to the form starting with 0]
String _tmp_id = "";
if (id != null) {
// this check is needed for backwards compatibility with 2.1.x
if (altSyntax()) {
_tmp_id = findString(id);
} else {
_tmp_id = id;
}
}
else {
if (form != null && form.getParameters().get("id") != null) {
_tmp_id = _tmp_id + form.getParameters().get("id").toString() + "_";
}
if (name != null) {
_tmp_id = _tmp_id + escape(name);
} else if (action != null || method != null){
if (action != null) {
_tmp_id = _tmp_id + escape(action);
}
if (method != null) {
_tmp_id = _tmp_id + "_" + escape(method);
}
} else {
// if form is null, this component is used, without a form, i guess
// there's not much we could do then.
if (form != null) {
_tmp_id = _tmp_id + form.getSequence();
}
}
}
addParameter("id", _tmp_id);
|
public void | setAction(java.lang.String action)
this.action = action;
|
public void | setAlign(java.lang.String align)
this.align = align;
|
public void | setMethod(java.lang.String method)
this.method = method;
|
public void | setType(java.lang.String type)
this.type = type;
|
protected abstract boolean | supportsImageType()Indicate whether the concrete button supports the type "image".
|