com.vaadin.server
Class ComponentSizeValidator
java.lang.Object
com.vaadin.server.ComponentSizeValidator
- All Implemented Interfaces:
- java.io.Serializable
public class ComponentSizeValidator
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentSizeValidator
public ComponentSizeValidator()
validateComponentRelativeSizes
public static java.util.List<ComponentSizeValidator.InvalidLayout> validateComponentRelativeSizes(Component component,
java.util.List<ComponentSizeValidator.InvalidLayout> errors,
ComponentSizeValidator.InvalidLayout parent)
- Recursively checks given component and its subtree for invalid layout
setups. Prints errors to std err stream.
- Parameters:
component
- component to check
- Returns:
- set of first level errors found
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(java.lang.Object object)
setWidthLocation
public static void setWidthLocation(java.lang.Object object)
setHeightLocation
public static void setHeightLocation(java.lang.Object object)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.