Package com.vaadin.ui

Class ComponentRootSetter

  • All Implemented Interfaces:
    java.io.Serializable

    public class ComponentRootSetter
    extends java.lang.Object
    implements java.io.Serializable
    Internal utility class.
    Since:
    8.1
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canSetRoot​(Component customComponent)
      Checks if the given custom component or composite may accept a root component.
      static void setRoot​(Component customComponent, Component component)
      Sets the composition root for the given custom component or composite.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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