Example usage for com.vaadin.ui AbstractComponent setSizeUndefined

List of usage examples for com.vaadin.ui AbstractComponent setSizeUndefined

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractComponent setSizeUndefined.

Prototype

@Override
    public void setSizeUndefined() 

Source Link

Usage

From source file:eu.lod2.LOD2Demo.java

License:Apache License

private void resetSize(AbstractComponentContainer comp) {

    System.err.println("reset sizing");

    Iterator<Component> it = comp.getComponentIterator();
    while (it.hasNext()) {
        Component c = it.next();//  w w  w .j  a v a  2  s  .  c  o  m
        if (c instanceof AbstractComponent) {
            AbstractComponent ac = (AbstractComponent) c;
            ac.setSizeUndefined();
            System.err.println("Size:" + ac.getHeight());
        }
        ;
        if (c instanceof AbstractComponentContainer) {
            AbstractComponentContainer acc = (AbstractComponentContainer) c;
            resetSize(acc);
        }
        ;
    }
    ;

}