Example usage for com.vaadin.ui AbstractOrderedLayout addStyleName

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

Introduction

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

Prototype

@Override
    public void addStyleName(String style) 

Source Link

Usage

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   ww  w.  ja 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);
}