Author: abelevich
Date: 2010-05-19 07:58:31 -0400 (Wed, 19 May 2010)
New Revision: 17119
Modified:
root/ui/core/trunk/api/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java
Log:
rename sets vars
Modified:
root/ui/core/trunk/api/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java
===================================================================
---
root/ui/core/trunk/api/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java 2010-05-19
11:16:48 UTC (rev 17118)
+++
root/ui/core/trunk/api/src/main/java/org/ajax4jsf/component/behavior/AjaxBehavior.java 2010-05-19
11:58:31 UTC (rev 17119)
@@ -54,11 +54,11 @@
data, execute, onbeforedomupdate, onbegin, oncomplete, onerror, onevent, queueId,
render, similarityGroupingId, status, disabled, limitRender, immediate, behaviorListener
}
- private static final Set<String> ALL_LIST =
Collections.singleton("@all");
- private static final Set<String> FORM_LIST =
Collections.singleton("@form");
- private static final Set<String> THIS_LIST =
Collections.singleton("@this");
- private static final Set<String> REGION_LIST =
Collections.singleton("@region");
- private static final Set<String> NONE_LIST =
Collections.singleton("@none");
+ private static final Set<String> ALL =
Collections.singleton("@all");
+ private static final Set<String> FORM =
Collections.singleton("@form");
+ private static final Set<String> THIS =
Collections.singleton("@this");
+ private static final Set<String> REGION =
Collections.singleton("@region");
+ private static final Set<String> NONE =
Collections.singleton("@none");
@Override
public void setLiteralAttribute(String name, Object value) {
@@ -127,15 +127,15 @@
Set<String> list;
if (AjaxRendererUtils.ALL.equals(value)) {
- list = ALL_LIST;
+ list = ALL;
} else if (AjaxRendererUtils.FORM.equals(value)) {
- list = FORM_LIST;
+ list = FORM;
} else if (AjaxRendererUtils.THIS.equals(value)) {
- list = THIS_LIST;
+ list = THIS;
} else if (AjaxRendererUtils.REGION.equals(value)) {
- list = REGION_LIST;
+ list = REGION;
} else if (AjaxRendererUtils.NONE.equals(value)) {
- list = NONE_LIST;
+ list = NONE;
} else {
throw new FacesException(value + " : Invalid id keyword specified
for '" + propertyName + "' attribute");
}
Show replies by date