summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/AbstractComponentState.java1
-rw-r--r--shared/src/main/java/com/vaadin/shared/AbstractFieldState.java5
2 files changed, 5 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/AbstractComponentState.java b/shared/src/main/java/com/vaadin/shared/AbstractComponentState.java
index bcf2885989..a60ae7aaf5 100644
--- a/shared/src/main/java/com/vaadin/shared/AbstractComponentState.java
+++ b/shared/src/main/java/com/vaadin/shared/AbstractComponentState.java
@@ -31,7 +31,6 @@ import com.vaadin.shared.communication.SharedState;
public class AbstractComponentState extends SharedState {
public String height = "";
public String width = "";
- public boolean readOnly = false;
@NoLayout
public String description = "";
// Note: for the caption, there is a difference between null and an empty
diff --git a/shared/src/main/java/com/vaadin/shared/AbstractFieldState.java b/shared/src/main/java/com/vaadin/shared/AbstractFieldState.java
index 6ac39efe69..4a94a82fec 100644
--- a/shared/src/main/java/com/vaadin/shared/AbstractFieldState.java
+++ b/shared/src/main/java/com/vaadin/shared/AbstractFieldState.java
@@ -31,4 +31,9 @@ public class AbstractFieldState extends TabIndexState {
*/
public boolean required = false;
+ /**
+ * Is the field read-only or not.
+ */
+ public boolean readOnly = false;
+
}