Search in sources :

Example 1 with PivotGridPanel

use of org.activityinfo.ui.client.component.report.view.PivotGridPanel in project activityinfo by bedatadriven.

the class ChartEditor method createGridPane.

private void createGridPane() {
    BorderLayoutData south = new BorderLayoutData(Style.LayoutRegion.SOUTH, 0.30f);
    south.setCollapsible(true);
    south.setSplit(true);
    south.setMargins(new Margins(5, 0, 0, 0));
    gridPanel = new PivotGridPanel(dispatcher);
    gridPanel.setHeadingText("Table");
    chartView.bindTable(gridPanel);
    center.add(gridPanel, south);
}
Also used : PivotGridPanel(org.activityinfo.ui.client.component.report.view.PivotGridPanel) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins)

Example 2 with PivotGridPanel

use of org.activityinfo.ui.client.component.report.view.PivotGridPanel in project activityinfo by bedatadriven.

the class PivotTableEditor method createGridContainer.

private void createGridContainer() {
    center = new LayoutContainer();
    center.setLayout(new BorderLayout());
    add(center, new BorderLayoutData(Style.LayoutRegion.CENTER));
    gridPanel = new PivotGridPanel(service);
    gridPanel.setHeaderVisible(true);
    gridPanel.setHeadingText(I18N.CONSTANTS.preview());
    center.add(gridPanel, new BorderLayoutData(Style.LayoutRegion.CENTER));
    viewBinder = new PivotTableBinder(eventBus, service, gridPanel);
}
Also used : BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout) PivotGridPanel(org.activityinfo.ui.client.component.report.view.PivotGridPanel) LayoutContainer(com.extjs.gxt.ui.client.widget.LayoutContainer) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)

Aggregations

BorderLayoutData (com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)2 PivotGridPanel (org.activityinfo.ui.client.component.report.view.PivotGridPanel)2 Margins (com.extjs.gxt.ui.client.util.Margins)1 LayoutContainer (com.extjs.gxt.ui.client.widget.LayoutContainer)1 BorderLayout (com.extjs.gxt.ui.client.widget.layout.BorderLayout)1