com.vaadin.data.util
Class LegacyPropertyHelper

java.lang.Object
  extended by com.vaadin.data.util.LegacyPropertyHelper
All Implemented Interfaces:
java.io.Serializable

Deprecated. This is only used internally for backwards compatibility

@Deprecated
public class LegacyPropertyHelper
extends java.lang.Object
implements java.io.Serializable

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 Summary
LegacyPropertyHelper()
          Deprecated.  
 
Method Summary
static boolean isLegacyToStringEnabled()
          Deprecated. Checks if legacy Property.toString() implementation is enabled.
static java.lang.String legacyPropertyToString(Property p)
          Deprecated. Returns the property value converted to a String.
static void maybeLogLegacyPropertyToStringWarning(Property p)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyPropertyHelper

public LegacyPropertyHelper()
Deprecated. 
Method Detail

legacyPropertyToString

public static java.lang.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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.