Class LegacyPropertyHelper

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public class LegacyPropertyHelper
    extends Object
    implements Serializable
    Deprecated.
    This is only used internally for backwards compatibility
    Helper 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 Detail

      • LegacyPropertyHelper

        public LegacyPropertyHelper()
        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