Package com.vaadin.classic.v8.server
Class ComponentSizeValidator
java.lang.Object
com.vaadin.classic.v8.server.ComponentSizeValidator
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanparentCanDefineHeight(com.vaadin.flow.component.Component component) Internal framework sizing magic method that has never had javadocs.static booleanparentCanDefineWidth(com.vaadin.flow.component.Component component) Internal framework sizing magic method that has never had javadocs.
-
Method Details
-
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
-