com.vaadin.server.

Class ComponentSizeValidator

    • Method Detail

      • checkHeights

        public static boolean checkHeights​(Component component)
      • checkWidths

        public static boolean checkWidths​(Component component)
      • parentCanDefineHeight

        public static boolean parentCanDefineHeight​(Component component)
      • parentCanDefineWidth

        public static boolean parentCanDefineWidth​(Component component)
      • setCreationLocation

        public static void setCreationLocation​(Object object)
      • setWidthLocation

        public static void setWidthLocation​(Object object)
      • setHeightLocation

        public static void setHeightLocation​(Object object)
      • validateLayouts

        public static List<ComponentSizeValidator.InvalidLayout> validateLayouts​(UI ui)

        Validates the layout and returns a collection of errors.

        Parameters:

        ui - The UI to validate

        Returns:

        A collection of errors. An empty collection if there are no errors.

        Since:

        7.1