aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data/util
diff options
context:
space:
mode:
authortapio <tapio@vaadin.com>2012-11-08 13:32:06 +0200
committertapio <tapio@vaadin.com>2012-11-08 13:32:06 +0200
commit9b69534bc46e01f5a762284542db460930de44fa (patch)
tree4a192ecb96e7edf5c4305aa0bab5bf5dfa889380 /server/src/com/vaadin/data/util
parente8ae9f7d6427f7f6daae300dee7931a6e8394bdb (diff)
downloadvaadin-framework-9b69534bc46e01f5a762284542db460930de44fa.tar.gz
vaadin-framework-9b69534bc46e01f5a762284542db460930de44fa.zip
Modified FieldGroup so that fields configured with read only properties
will also be made read only (#9076). Change-Id: I183ae263f4952a51513623d38dc9e04ce1482f45
Diffstat (limited to 'server/src/com/vaadin/data/util')
-rw-r--r--server/src/com/vaadin/data/util/TransactionalPropertyWrapper.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/data/util/TransactionalPropertyWrapper.java b/server/src/com/vaadin/data/util/TransactionalPropertyWrapper.java
index d8d27ae4c8..503bb1c743 100644
--- a/server/src/com/vaadin/data/util/TransactionalPropertyWrapper.java
+++ b/server/src/com/vaadin/data/util/TransactionalPropertyWrapper.java
@@ -122,4 +122,18 @@ public class TransactionalPropertyWrapper<T> extends AbstractProperty<T>
return wrappedProperty;
}
+ @Override
+ public boolean isReadOnly() {
+ return wrappedProperty.isReadOnly();
+ }
+
+ @Override
+ public void setReadOnly(boolean newStatus) {
+ boolean oldStatus = isReadOnly();
+ wrappedProperty.setReadOnly(newStatus);
+ if (oldStatus != isReadOnly()) {
+ fireReadOnlyStatusChange();
+ }
+ }
+
}