Browse Source

Make compatibility aliases for isRequiredIndicatorVisible() (#8372)

* Make compatibility aliases for isRequiredIndicatorVisible()

Fixes #8337
tags/8.0.0.beta2
Denis 7 years ago
parent
commit
2eb8004a1b

+ 16
- 0
compatibility-client/src/main/java/com/vaadin/v7/client/ui/AbstractFieldConnector.java View File

@@ -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.
* <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.
*

Loading…
Cancel
Save