Package com.vaadin.ui
Class ComponentRootSetter
- java.lang.Object
-
- com.vaadin.ui.ComponentRootSetter
-
- All Implemented Interfaces:
Serializable
public class ComponentRootSetter extends Object implements 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.
-
-
-
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 compositecomponent
- 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
-
-