Search in sources :

Example 1 with VerticalLayoutContainer

use of com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer in project activityinfo by bedatadriven.

the class AnalysisView method createPanes.

private void createPanes() {
    MeasurePane measurePane = new MeasurePane(model);
    DimensionPane rowPane = new DimensionPane(model, Axis.ROW);
    DimensionPane columnPane = new DimensionPane(model, Axis.COLUMN);
    pivotTableView = new PivotTableView(model);
    VerticalLayoutContainer pane = new VerticalLayoutContainer();
    pane.add(measurePane, new VerticalLayoutContainer.VerticalLayoutData(1, 0.4));
    pane.add(rowPane, new VerticalLayoutContainer.VerticalLayoutData(1, 0.3));
    pane.add(columnPane, new VerticalLayoutContainer.VerticalLayoutData(1, 0.3));
    BorderLayoutContainer.BorderLayoutData paneLayout = new BorderLayoutContainer.BorderLayoutData();
    // 30% of view
    paneLayout.setSize(0.3);
    paneLayout.setMaxSize(400);
    container.setEastWidget(pane, paneLayout);
    container.setCenterWidget(pivotTableView);
}
Also used : VerticalLayoutContainer(com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer) BorderLayoutContainer(com.sencha.gxt.widget.core.client.container.BorderLayoutContainer)

Example 2 with VerticalLayoutContainer

use of com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer in project mvp4g2-examples by mvp4g.

the class DetailView method createView.

@Override
public void createView() {
    this.container = new ContentPanel();
    this.container.setHeaderVisible(false);
    this.container.setBodyStyle("padding: 12px;");
    VerticalLayoutContainer vlc = new VerticalLayoutContainer();
    this.container.setWidget(vlc);
    FieldLabel fl01 = new FieldLabel();
    fl01.setText("Sender");
    sender = new TextField();
    sender.setReadOnly(true);
    fl01.setWidget(sender);
    vlc.add(fl01, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    FieldLabel fl02 = new FieldLabel();
    fl02.setText("Email sender");
    emailSender = new TextField();
    emailSender.setReadOnly(true);
    fl02.setWidget(emailSender);
    vlc.add(fl02, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    FieldLabel fl03 = new FieldLabel();
    fl03.setText("Text");
    VerticalLayoutContainer vlc01 = new VerticalLayoutContainer();
    vlc01.setScrollMode(ScrollSupport.ScrollMode.AUTOY);
    vlc01.setBorders(true);
    body = new HTML();
    vlc01.add(body, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    fl03.setWidget(vlc01);
    vlc.add(fl03, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
}
Also used : VerticalLayoutContainer(com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer) FieldLabel(com.sencha.gxt.widget.core.client.form.FieldLabel) TextField(com.sencha.gxt.widget.core.client.form.TextField) HTML(com.google.gwt.user.client.ui.HTML) ContentPanel(com.sencha.gxt.widget.core.client.ContentPanel)

Aggregations

VerticalLayoutContainer (com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer)2 HTML (com.google.gwt.user.client.ui.HTML)1 ContentPanel (com.sencha.gxt.widget.core.client.ContentPanel)1 BorderLayoutContainer (com.sencha.gxt.widget.core.client.container.BorderLayoutContainer)1 FieldLabel (com.sencha.gxt.widget.core.client.form.FieldLabel)1 TextField (com.sencha.gxt.widget.core.client.form.TextField)1