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);
}
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));
}
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);
}
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;
}
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));
}
Aggregations