Package com.vaadin.ui

Class ComponentRootSetter

    • Method Detail

      • setRoot

        public static void setRoot​(Component customComponent,
                                   Component component)
        Sets the composition root for the given custom component or composite.

        For internal use only.

        Parameters:
        customComponent - the custom component or composite
        component - the component to assign as composition root
      • canSetRoot

        public static boolean canSetRoot​(Component customComponent)
        Checks if the given custom component or composite may accept a root component.

        For internal use only.

        Parameters:
        customComponent - the custom component or composite
        Returns:
        Since:
        8.4