Class ComponentSizeValidator

  • All Implemented Interfaces:
    java.io.Serializable

    public class ComponentSizeValidator
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean parentCanDefineHeight​(com.vaadin.flow.component.Component component)
      Internal framework sizing magic method that has never had javadocs.
      static boolean parentCanDefineWidth​(com.vaadin.flow.component.Component component)
      Internal framework sizing magic method that has never had javadocs.
      • Methods inherited from class java.lang.Object

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

      • parentCanDefineHeight

        public static boolean parentCanDefineHeight​(com.vaadin.flow.component.Component component)
        Internal framework sizing magic method that has never had javadocs. The purpose is to block users from setting relative (%) size child components when inside certain legacy components.
        Parameters:
        component - the flow or classic component
        Returns:
        whether the component can define its height or not
      • parentCanDefineWidth

        public static boolean parentCanDefineWidth​(com.vaadin.flow.component.Component component)
        Internal framework sizing magic method that has never had javadocs. The purpose is to block users from setting relative (%) size child components when inside certain classic components.
        Parameters:
        component - the flow or classic component
        Returns:
        whether the component can define its width or not