Package com.vaadin.data.util
Class LegacyPropertyHelper
- java.lang.Object
-
- com.vaadin.data.util.LegacyPropertyHelper
-
- All Implemented Interfaces:
Serializable
@Deprecated public class LegacyPropertyHelper extends Object implements Serializable
Deprecated.This is only used internally for backwards compatibilityHelper class which provides methods for handling Property.toString in a Vaadin 6 compatible way- Since:
- 7.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LegacyPropertyHelper()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 property- Returns:
- 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
-
-