Class Helpers

  • All Implemented Interfaces:
    java.io.Serializable

    public class Helpers
    extends java.lang.Object
    implements java.io.Serializable
    Helper class for classic component pack internal things.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isVaadin7Defaults()
      Checks whether the Vaadin 7 defaults should be used or not.
      static void logUnsupportedApiCall​(java.lang.Class<?> clazz, java.lang.String methodName)
      Logs out a warning in development mode about unsupported API call of the given method in the given class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UNSUPPORTED_API_LOGGER_NAME

        public static final java.lang.String UNSUPPORTED_API_LOGGER_NAME
        See Also:
        Constant Field Values
      • VAADIN_7_SYSTEM_PROPERTY

        public static final java.lang.String VAADIN_7_SYSTEM_PROPERTY
        See Also:
        Constant Field Values
    • Method Detail

      • logUnsupportedApiCall

        public static void logUnsupportedApiCall​(java.lang.Class<?> clazz,
                                                 java.lang.String methodName)
        Logs out a warning in development mode about unsupported API call of the given method in the given class.
        Parameters:
        clazz - the class that was called
        methodName - the name of the unsupported method that was called
      • isVaadin7Defaults

        public static boolean isVaadin7Defaults()
        Checks whether the Vaadin 7 defaults should be used or not.
        Returns:
        true to use V7 defaults, false to not and use V8 defaults