Search in sources :

Example 16 with BorderLayoutData

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

the class LocationDialog method addSearchPanel.

private void addSearchPanel(LocationTypeDTO locationType) {
    LayoutContainer container = new LayoutContainer();
    container.setLayout(new FlowLayout());
    container.setScrollMode(Scroll.AUTOY);
    container.addStyleName(SiteFormResources.INSTANCE.style().locationDialogPane());
    container.add(newHeader(I18N.CONSTANTS.chooseLocation()));
    container.add(newExplanation(I18N.CONSTANTS.chooseLocationDescription()));
    container.add(formHeader = newHeader(I18N.CONSTANTS.searchLocations()));
    container.add(new LocationForm(dispatcher, locationType, searchPresenter, newLocationPresenter));
    container.add(newHeader(I18N.CONSTANTS.searchResults()));
    container.add(new SearchListView(searchPresenter));
    container.add(new SearchStatusView(searchPresenter));
    addLocationHeader = newHeader(I18N.CONSTANTS.addLocation());
    addLocationHelp = newExplanation(I18N.CONSTANTS.addLocationDescription());
    addLocationButton = new Button(I18N.CONSTANTS.newLocation(), IconImageBundle.ICONS.add(), new SelectionListener<ButtonEvent>() {

        @Override
        public void componentSelected(ButtonEvent ce) {
            newLocationPresenter.setActive(true, true);
        }
    });
    addLocationButton.addStyleName(SiteFormResources.INSTANCE.style().addLocationButton());
    if (isAddAllowed()) {
        container.add(addLocationHeader);
        container.add(addLocationHelp);
        container.add(addLocationButton);
    }
    BorderLayoutData layout = new BorderLayoutData(LayoutRegion.WEST);
    layout.setSize(350);
    add(container, layout);
}
Also used : FlowLayout(com.extjs.gxt.ui.client.widget.layout.FlowLayout) LayoutContainer(com.extjs.gxt.ui.client.widget.LayoutContainer) Button(com.extjs.gxt.ui.client.widget.button.Button) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)

Example 17 with BorderLayoutData

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

the class ReportDesignPage method installEditor.

private void installEditor(final ReportElementEditor editor) {
    if (currentEditor != null) {
        remove(currentEditor.getWidget());
    }
    reportBar.getExportButton().setFormats(editor.getExportFormats());
    add(editor.getWidget(), new BorderLayoutData(LayoutRegion.CENTER));
    this.currentEditor = editor;
    layout();
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)

Example 18 with BorderLayoutData

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

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

the class VSplitFrameSet method setWidget.

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

Example 20 with BorderLayoutData

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

the class VSplitFrameSet method addNavigationPanel.

private void addNavigationPanel() {
    BorderLayoutData layoutData = new BorderLayoutData(Style.LayoutRegion.WEST);
    layoutData.setSplit(true);
    layoutData.setCollapsible(true);
    layoutData.setMargins(new Margins(0, 5, 0, 0));
    container.add(getNavPanel(), layoutData);
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins)

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