Search in sources :

Example 1 with BorderLayout

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

the class PivotTableEditor method initializeComponent.

private void initializeComponent() {
    BorderLayout borderLayout = new BorderLayout();
    borderLayout.setEnableState(true);
    setStateId("pivotPage");
    setLayout(borderLayout);
}
Also used : BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout)

Example 2 with BorderLayout

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

the class DataEntryPage method addCenter.

private void addCenter() {
    gridPanel = new SiteGridPanel(dispatcher, new DefaultColumnModelProvider(dispatcher));
    gridPanel.setTopComponent(createToolBar());
    LayoutContainer center = new LayoutContainer();
    center.setLayout(new BorderLayout());
    center.add(createNewInterfaceLink(), new BorderLayoutData(LayoutRegion.NORTH, 30));
    center.add(gridPanel, new BorderLayoutData(LayoutRegion.CENTER));
    gridPanel.addSelectionChangedListener(new SelectionChangedListener<SiteDTO>() {

        @Override
        public void selectionChanged(SelectionChangedEvent<SiteDTO> se) {
            onSiteSelected(se);
        }
    });
    gridPanel.addRowDoubleClickListener(new SelectionChangedListener<SiteDTO>() {

        @Override
        public void selectionChanged(SelectionChangedEvent<SiteDTO> se) {
            editSite(se.getSelectedItem());
        }
    });
    detailTab = new DetailTab(dispatcher);
    monthlyPanel = new MonthlyReportsPanel(dispatcher);
    monthlyTab = new TabItem(I18N.CONSTANTS.monthlyReports());
    monthlyTab.setLayout(new FitLayout());
    monthlyTab.add(monthlyPanel);
    attachmentsTab = new AttachmentsTab(dispatcher, eventBus);
    siteHistoryTab = new SiteHistoryTab(resourceLocator);
    tabPanel = new CollapsibleTabPanel();
    tabPanel.add(detailTab);
    tabPanel.add(monthlyTab);
    tabPanel.add(attachmentsTab);
    tabPanel.add(siteHistoryTab);
    tabPanel.setSelection(detailTab);
    center.add(tabPanel, tabPanel.getBorderLayoutData());
    onNoSelection();
    add(center, new BorderLayoutData(LayoutRegion.CENTER));
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) DefaultColumnModelProvider(org.activityinfo.ui.client.page.entry.column.DefaultColumnModelProvider) SiteHistoryTab(org.activityinfo.ui.client.page.entry.sitehistory.SiteHistoryTab) BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 3 with BorderLayout

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

Example 4 with BorderLayout

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

the class DbTargetGrid method createGridAndAddToContainer.

@Override
protected Grid<TargetDTO> createGridAndAddToContainer(Store store) {
    this.store = (ListStore<TargetDTO>) store;
    grid = new Grid<TargetDTO>((ListStore) store, createColumnModel());
    grid.setAutoExpandColumn("name");
    grid.setLoadMask(true);
    setLayout(new BorderLayout());
    add(grid, new BorderLayoutData(Style.LayoutRegion.CENTER));
    return grid;
}
Also used : ListStore(com.extjs.gxt.ui.client.store.ListStore) BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) TargetDTO(org.activityinfo.legacy.shared.model.TargetDTO)

Example 5 with BorderLayout

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

the class ChartEditor method createCenter.

private void createCenter() {
    center = new ContentPanel(new BorderLayout());
    center.setHeaderVisible(false);
    add(center, new BorderLayoutData(Style.LayoutRegion.CENTER));
}
Also used : BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) ContentPanel(com.extjs.gxt.ui.client.widget.ContentPanel)

Aggregations

BorderLayout (com.extjs.gxt.ui.client.widget.layout.BorderLayout)5 BorderLayoutData (com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)4 ListStore (com.extjs.gxt.ui.client.store.ListStore)1 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)1 LayoutContainer (com.extjs.gxt.ui.client.widget.LayoutContainer)1 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)1 TargetDTO (org.activityinfo.legacy.shared.model.TargetDTO)1 PivotGridPanel (org.activityinfo.ui.client.component.report.view.PivotGridPanel)1 DefaultColumnModelProvider (org.activityinfo.ui.client.page.entry.column.DefaultColumnModelProvider)1 SiteHistoryTab (org.activityinfo.ui.client.page.entry.sitehistory.SiteHistoryTab)1