Search in sources :

Example 1 with BorderLayoutData

use of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData 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 BorderLayoutData

use of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData in project activityinfo by bedatadriven.

the class ChartEditor method createWest.

private void createWest() {
    filterPane = new PivotFilterPanel(eventBus, dispatcher, locator);
    BorderLayoutData west = new BorderLayoutData(Style.LayoutRegion.WEST, 0.30f);
    west.setCollapsible(true);
    west.setSplit(true);
    west.setMargins(new Margins(0, 5, 0, 0));
    add(filterPane, west);
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins)

Example 3 with BorderLayoutData

use of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData in project activityinfo by bedatadriven.

the class AppFrameSet method setWidget.

public void setWidget(Widget widget) {
    if (activeWidget != null) {
        viewport.remove(activeWidget);
    }
    viewport.add(widget, new BorderLayoutData(LayoutRegion.CENTER));
    activeWidget = widget;
    viewport.layout();
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)

Example 4 with BorderLayoutData

use of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData in project activityinfo by bedatadriven.

the class AppFrameSet method setupTabs.

private void setupTabs() {
    appBar.getSectionTabStrip().addSelectionHandler(new SelectionHandler<Section>() {

        @Override
        public void onSelection(SelectionEvent<Section> event) {
            onSectionClicked(event.getSelectedItem());
        }
    });
    eventBus.addListener(NavigationHandler.NAVIGATION_AGREED, new Listener<NavigationEvent>() {

        @Override
        public void handleEvent(NavigationEvent event) {
            appBar.getSectionTabStrip().setSelection(event.getPlace().getSection());
        }
    });
    BorderLayoutData layout = new BorderLayoutData(LayoutRegion.NORTH);
    layout.setSize(AppBar.HEIGHT);
    viewport.add(appBar, layout);
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)

Example 5 with BorderLayoutData

use of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData in project activityinfo by bedatadriven.

the class DbTargetGrid method createTargetValueContainer.

@Override
public void createTargetValueContainer(Widget w) {
    targetValueContainer = new ContentPanel();
    targetValueContainer.setHeaderVisible(false);
    targetValueContainer.setBorders(false);
    targetValueContainer.setFrame(false);
    targetValueContainer.setLayout(new FitLayout());
    BorderLayoutData layout = new BorderLayoutData(Style.LayoutRegion.SOUTH);
    layout.setSplit(true);
    layout.setCollapsible(true);
    layout.setSize(250);
    layout.setMargins(new Margins(5, 0, 0, 0));
    targetValueContainer.add(w);
    add(targetValueContainer, layout);
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins) ContentPanel(com.extjs.gxt.ui.client.widget.ContentPanel) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Aggregations

BorderLayoutData (com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)22 Margins (com.extjs.gxt.ui.client.util.Margins)7 BorderLayout (com.extjs.gxt.ui.client.widget.layout.BorderLayout)4 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)2 LayoutContainer (com.extjs.gxt.ui.client.widget.LayoutContainer)2 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)2 PivotGridPanel (org.activityinfo.ui.client.component.report.view.PivotGridPanel)2 ModelData (com.extjs.gxt.ui.client.data.ModelData)1 ListStore (com.extjs.gxt.ui.client.store.ListStore)1 TreeStore (com.extjs.gxt.ui.client.store.TreeStore)1 Button (com.extjs.gxt.ui.client.widget.button.Button)1 GridSelectionModel (com.extjs.gxt.ui.client.widget.grid.GridSelectionModel)1 FlowLayout (com.extjs.gxt.ui.client.widget.layout.FlowLayout)1 QuickTip (com.extjs.gxt.ui.client.widget.tips.QuickTip)1 AbstractImagePrototype (com.google.gwt.user.client.ui.AbstractImagePrototype)1 Filter (org.activityinfo.legacy.shared.command.Filter)1 SiteDTO (org.activityinfo.legacy.shared.model.SiteDTO)1 TargetDTO (org.activityinfo.legacy.shared.model.TargetDTO)1 PivotFilterPanel (org.activityinfo.ui.client.component.report.editor.chart.PivotFilterPanel)1 ChartOFCView (org.activityinfo.ui.client.component.report.view.ChartOFCView)1