com.vaadin.data.util.
Class LegacyPropertyHelper
- java.lang.Object
-
- com.vaadin.data.util.LegacyPropertyHelper
-
All Implemented Interfaces:
Deprecated.
This is only used internally for backwards compatibility
@Deprecated public class LegacyPropertyHelper extends Object implements Serializable
Helper class which provides methods for handling Property.toString in a Vaadin 6 compatible way
Since:
7.1
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description LegacyPropertyHelper()
Deprecated.
-
Method Summary
All Methods Modifier and Type Method and Description static boolean
isLegacyToStringEnabled()
Deprecated.
Checks if legacy Property.toString() implementation is enabled.
static String
legacyPropertyToString(Property p)
Deprecated.
Returns the property value converted to a String.
static void
maybeLogLegacyPropertyToStringWarning(Property p)
Deprecated.
-
-
-
Method Detail
-
legacyPropertyToString
public static String legacyPropertyToString(Property p)
Deprecated.
Returns the property value converted to a String.
Parameters:
p
- The propertyReturns:
A string representation of the property value, compatible with how Property implementations in Vaadin 6 do it
-
maybeLogLegacyPropertyToStringWarning
public static void maybeLogLegacyPropertyToStringWarning(Property p)
Deprecated.
-
isLegacyToStringEnabled
public static boolean isLegacyToStringEnabled()
Deprecated.
Checks if legacy Property.toString() implementation is enabled. The legacy Property.toString() will return the value of the property somehow converted to a String. If the legacy mode is disabled, toString() will return super.toString().
The legacy toString mode can be toggled using the "legacyPropertyToString" init parameter
Returns:
true if legacy Property.toString() mode is enabled, false otherwise
-
-