diff options
author | Denis <denis@vaadin.com> | 2017-01-30 20:44:18 +0200 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-01-30 20:44:18 +0200 |
commit | 2eb8004a1bea6909ce4c59ef2dd9ebba7bb86b96 (patch) | |
tree | 1ce3d9faf6979753a86cfb8f30bd87e6463e2a40 /compatibility-client | |
parent | 0a5e000fe904b3bf20a78ebaa01ba9e5c797e302 (diff) | |
download | vaadin-framework-2eb8004a1bea6909ce4c59ef2dd9ebba7bb86b96.tar.gz vaadin-framework-2eb8004a1bea6909ce4c59ef2dd9ebba7bb86b96.zip |
Make compatibility aliases for isRequiredIndicatorVisible() (#8372)
* Make compatibility aliases for isRequiredIndicatorVisible()
Fixes #8337
Diffstat (limited to 'compatibility-client')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java index 7f96e63d0a..212634e885 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java @@ -43,6 +43,22 @@ public abstract class AbstractFieldConnector /** * Checks whether the required indicator should be shown for the field. + * Required indicators are hidden if the field or its data source is + * read-only. + * <p> + * NOTE: since 8.0 this only delegates to + * {@link #isRequiredIndicatorVisible()}, and is left for legacy reasons. + * + * @deprecated Use {@link #isRequiredIndicatorVisible()} instead. + * + * @return true if required indicator should be shown + */ + public boolean isRequired() { + return isRequiredIndicatorVisible(); + } + + /** + * Checks whether the required indicator should be shown for the field. * * Required indicators are hidden if the field or its data source is * read-only. |