summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-11-02 11:20:23 +0200
committerVaadin Code Review <review@vaadin.com>2016-11-02 12:13:18 +0000
commitdd20841c39b0b30eb2a5c5fddc2eb9cb1cd1e595 (patch)
tree6583dff38b14b61b6c008c6625184662b01a4e32 /shared/src
parentabd4e816f795a5bd402e9084d2faa4de15d14faa (diff)
downloadvaadin-framework-dd20841c39b0b30eb2a5c5fddc2eb9cb1cd1e595.tar.gz
vaadin-framework-dd20841c39b0b30eb2a5c5fddc2eb9cb1cd1e595.zip
Move read-only to AbstractFieldState (#8514)
Change-Id: I0baea991bd80075d63c5d57e3b07f4e9fcb12676
Diffstat (limited to 'shared/src')
-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;
+
}