Example usage for com.vaadin.ui AbstractOrderedLayout setSizeFull

List of usage examples for com.vaadin.ui AbstractOrderedLayout setSizeFull

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractOrderedLayout setSizeFull.

Prototype

@Override
    public void setSizeFull() 

Source Link

Usage

From source file:org.eclipse.emf.ecp.view.vaadin.ViewRendererVaadin.java

License:Open Source License

@Override
public Component render() {
    final AbstractOrderedLayout layout = getLayout();
    layout.setSpacing(true);/*from w  w w.j  a  v  a  2  s.  c om*/
    layout.setMargin(true);
    layout.setSizeFull();
    for (final VContainedElement composite : getVElement().getChildren()) {
        final Component renderResult = getRendererFactory().render(composite, getViewModelContext());
        layout.addComponent(renderResult);

    }
    final ECPVaadinViewComponent ecpVaadinViewComponent = new ECPVaadinViewComponent();
    ecpVaadinViewComponent.addStyleName(BORDERLESS);
    ecpVaadinViewComponent.setContent(layout);
    return ecpVaadinViewComponent;
}

From source file:org.semanticsoft.vaaclipse.presentation.renderers.AreaRenderer.java

License:Open Source License

@Override
public void createWidget(MUIElement element, MElementContainer<MUIElement> parent) {
    if (!(element instanceof MArea))
        return;//from w ww. j a v a  2s .  co  m

    MArea area = (MArea) element;
    AbstractOrderedLayout areaComp;
    if (area.isHorizontal())
        areaComp = new HorizontalLayout();
    else {
        ExtendedVerticalLayout bi = new ExtendedVerticalLayout();
        bi.setVariableValue("e4ElementType", "area");
        areaComp = bi;
    }
    areaComp.addStyleName("area");
    areaComp.setSizeFull();
    element.setWidget(areaComp);
}