summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java16
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.