From 2eb8004a1bea6909ce4c59ef2dd9ebba7bb86b96 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 30 Jan 2017 20:44:18 +0200 Subject: Make compatibility aliases for isRequiredIndicatorVisible() (#8372) * Make compatibility aliases for isRequiredIndicatorVisible() Fixes #8337 --- .../com/vaadin/v7/client/ui/AbstractFieldConnector.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'compatibility-client/src') 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 @@ -41,6 +41,22 @@ public abstract class AbstractFieldConnector return getState().modified; } + /** + * 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. + *

+ * 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. * -- cgit v1.2.3