Author: nbelaevski
Date: 2009-08-27 17:51:03 -0400 (Thu, 27 Aug 2009)
New Revision: 15371
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java
Log:
Status attributes added
Modified:
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java
===================================================================
---
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java 2009-08-27
21:49:25 UTC (rev 15370)
+++
root/ui/trunk/components/core/src/main/java/org/richfaces/component/html/HtmlAjaxStatus.java 2009-08-27
21:51:03 UTC (rev 15371)
@@ -45,6 +45,10 @@
Arrays.asList("start", "stop", "error",
"success"))
);
+ private static enum PropertyKeys {
+ onstart, onstop, onerror, onsuccess
+ }
+
public HtmlAjaxStatus() {
setRendererType("org.richfaces.StatusRenderer");
}
@@ -57,4 +61,36 @@
public Collection<String> getEventNames() {
return EVENT_NAMES;
}
+
+ public String getOnstart() {
+ return (String) getStateHelper().eval(PropertyKeys.onstart);
+ }
+
+ public void setOnstart(String onstart) {
+ getStateHelper().put(PropertyKeys.onstart, onstart);
+ }
+
+ public String getOnstop() {
+ return (String) getStateHelper().eval(PropertyKeys.onstop);
+ }
+
+ public void setOnstop(String onstop) {
+ getStateHelper().put(PropertyKeys.onstop, onstop);
+ }
+
+ public String getOnerror() {
+ return (String) getStateHelper().eval(PropertyKeys.onerror);
+ }
+
+ public void setOnerror(String onerror) {
+ getStateHelper().put(PropertyKeys.onerror, onerror);
+ }
+
+ public String getOnsuccess() {
+ return (String) getStateHelper().eval(PropertyKeys.onsuccess);
+ }
+
+ public void setOnsuccess(String onsuccess) {
+ getStateHelper().put(PropertyKeys.onsuccess, onsuccess);
+ }
}
Show replies by date