Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kie.workbench.common.screens.home.client.widgets.sections;
 
A Section positioning it's children vertically
 
public class VerticalSectionWidget extends Composite {
    private HeaderWidget header = new HeaderWidget();
    private VerticalPanel container = new VerticalPanel();
    private VerticalPanel contents = new VerticalPanel();
    public VerticalSectionWidget() {
        initWidget );
        .add );
        .add );
    }
    public void setHeaderTextfinal String headerText ) {
        this..setTextheaderText );
    }
    public void addfinal Widget w ) {
        .addw );
    }
    public void clear() {
        .clear();
    }
New to GrepCode? Check out our FAQ X