Author: abelevich
Date: 2008-04-17 09:44:07 -0400 (Thu, 17 Apr 2008)
New Revision: 7896
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-2828
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
---
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-17
13:36:02 UTC (rev 7895)
+++
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-17
13:44:07 UTC (rev 7896)
@@ -303,15 +303,15 @@
for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
OrderingComponentRendererBase.ControlsHelper helper = SHUTTLE_HELPERS[i];
- boolean isDisabled =
helper.getButtonStyleClass().equals(ListShuttleControlsHelper.DISABLED_STYLE_PREF);
- if
(helper.getBundlePropertyName().equals(ListShuttleControlsHelper.BUNDLE_REMOVE_ALL_LABEL))
{
+ boolean isDisabled =
helper.getButtonStyleClass().equals(PickListControlsHelper.DISABLED_STYLE_PREF);
+ if
(helper.getBundlePropertyName().equals(PickListControlsHelper.BUNDLE_REMOVE_ALL_LABEL)) {
enable = isSelectedList;
if(enable != isDisabled) {
enable = true;
} else {
enable = false;
}
- } else if
(helper.getBundlePropertyName().equals(ListShuttleControlsHelper.BUNDLE_COPY_ALL_LABEL))
{
+ } else if
(helper.getBundlePropertyName().equals(PickListControlsHelper.BUNDLE_COPY_ALL_LABEL)) {
enable = isAvailableList;
if(enable != isDisabled) {
enable = true;
@@ -319,7 +319,7 @@
enable = false;
}
} else {
- if (helper.getButtonStyleClass().equals(ListShuttleControlsHelper.DISABLED_STYLE_PREF))
{
+ if (helper.getButtonStyleClass().equals(PickListControlsHelper.DISABLED_STYLE_PREF)) {
enable = true;
} else {
enable = false;