diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-30 23:20:18 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-30 23:20:43 +0300 |
commit | 402a103a4f6f2ea3d5cd92532843918a4e902ec2 (patch) | |
tree | 52f687d47a63636d1e3f21135227a15018d74d35 /compatibility-shared | |
parent | 1aed1bee96aac99ac0041aeb7a36d05dd6eff677 (diff) | |
download | vaadin-framework-402a103a4f6f2ea3d5cd92532843918a4e902ec2.tar.gz vaadin-framework-402a103a4f6f2ea3d5cd92532843918a4e902ec2.zip |
Duplicate AbstractField state and connector into compatibility-client
Change-Id: Ib6339f32ac348c144b19bb4a6ab724781e35196b
Diffstat (limited to 'compatibility-shared')
7 files changed, 37 insertions, 7 deletions
diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/AbstractFieldState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/AbstractFieldState.java new file mode 100644 index 0000000000..4ba42eba46 --- /dev/null +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/AbstractFieldState.java @@ -0,0 +1,32 @@ +/* + * Copyright 2000-2016 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.v7.shared; + +import com.vaadin.shared.ui.TabIndexState; + +/** + * Shared state for {@link com.vaadin.ui.AbstractField}. + * + * @author Vaadin Ltd + * @since 7.0.0 + * + */ +public class AbstractFieldState extends TabIndexState { + public boolean propertyReadOnly = false; + public boolean hideErrors = false; + public boolean required = false; + public boolean modified = false; +} diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/checkbox/CheckBoxState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/checkbox/CheckBoxState.java index 58b52ee97c..45fa24c3cc 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/checkbox/CheckBoxState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/checkbox/CheckBoxState.java @@ -15,7 +15,7 @@ */ package com.vaadin.v7.shared.ui.checkbox; -import com.vaadin.shared.AbstractFieldState; +import com.vaadin.v7.shared.AbstractFieldState; public class CheckBoxState extends AbstractFieldState { { diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/InlineDateFieldState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/InlineDateFieldState.java index ab780091df..483d6b4051 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/InlineDateFieldState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/InlineDateFieldState.java @@ -15,8 +15,6 @@ */ package com.vaadin.v7.shared.ui.datefield; -import com.vaadin.shared.ui.datefield.TextualDateFieldState; - public class InlineDateFieldState extends TextualDateFieldState { { primaryStyleName = "v-inline-datefield"; diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/TextualDateFieldState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/TextualDateFieldState.java index f9362dc358..006642e3ee 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/TextualDateFieldState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/datefield/TextualDateFieldState.java @@ -17,8 +17,8 @@ package com.vaadin.v7.shared.ui.datefield; import java.util.Date; -import com.vaadin.shared.AbstractFieldState; import com.vaadin.shared.annotations.NoLayout; +import com.vaadin.v7.shared.AbstractFieldState; public class TextualDateFieldState extends AbstractFieldState { { diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java index c5b07dd3e4..b3e510b43d 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/progressindicator/ProgressBarState.java @@ -16,9 +16,9 @@ package com.vaadin.v7.shared.ui.progressindicator; -import com.vaadin.shared.AbstractFieldState; import com.vaadin.shared.annotations.NoLayout; import com.vaadin.shared.communication.SharedState; +import com.vaadin.v7.shared.AbstractFieldState; /** * {@link SharedState} for {@link com.vaadin.ui.ProgressBar} diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java index 624a20162a..4d2c69bebc 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/select/AbstractSelectState.java @@ -15,7 +15,7 @@ */ package com.vaadin.v7.shared.ui.select; -import com.vaadin.shared.AbstractFieldState; +import com.vaadin.v7.shared.AbstractFieldState; /** * Shared state for the AbstractSelect component. diff --git a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/textfield/AbstractTextFieldState.java b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/textfield/AbstractTextFieldState.java index c25694ff2e..c74684d19a 100644 --- a/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/textfield/AbstractTextFieldState.java +++ b/compatibility-shared/src/main/java/com/vaadin/v7/shared/ui/textfield/AbstractTextFieldState.java @@ -15,8 +15,8 @@ */ package com.vaadin.v7.shared.ui.textfield; -import com.vaadin.shared.AbstractFieldState; import com.vaadin.shared.annotations.NoLayout; +import com.vaadin.v7.shared.AbstractFieldState; @Deprecated public class AbstractTextFieldState extends AbstractFieldState { |