diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-05 15:20:43 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-05 15:20:43 +0300 |
commit | 3e9874799d9b4940515fb203e2b57ac6a4212712 (patch) | |
tree | 0d414d99f300c242d84c4ccdb672009951707948 | |
parent | 65240f403416efc82fb5ff9efce682291d426e89 (diff) | |
download | vaadin-framework-3e9874799d9b4940515fb203e2b57ac6a4212712.tar.gz vaadin-framework-3e9874799d9b4940515fb203e2b57ac6a4212712.zip |
Fixed readonly buttons in TwinColSelect
-rw-r--r-- | client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java b/client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java index 6e5117cec6..cd985876df 100644 --- a/client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java +++ b/client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java @@ -226,8 +226,8 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler, selections.setMultipleSelect(isMultiselect()); options.setEnabled(enabled); selections.setEnabled(enabled); - add.setEnabled(enabled); - remove.setEnabled(enabled); + add.setEnabled(enabled && !readonly); + remove.setEnabled(enabled && !readonly); options.clear(); selections.clear(); for (final Iterator<?> i = uidl.getChildIterator(); i.hasNext();) { @@ -247,6 +247,8 @@ public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler, } + add.setStyleName("v-disabled", readonly); + remove.setStyleName("v-disabled", readonly); } @Override |