Search in sources :

Example 1 with Margins

use of com.extjs.gxt.ui.client.util.Margins 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 Margins

use of com.extjs.gxt.ui.client.util.Margins 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 Margins

use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.

the class ReportViewRetrier method createRetryPanel.

private static ContentPanel createRetryPanel(final Throwable caught, final ClickHandler retryCallback) {
    Button retryButton = new Button(I18N.CONSTANTS.retry());
    retryButton.addSelectionListener(new SelectionListener<ButtonEvent>() {

        @Override
        public void componentSelected(ButtonEvent ce) {
            if (retryCallback != null) {
                retryCallback.onClick(null);
            }
        }
    });
    Text label = new Text(ExceptionOracle.getExplanation(caught));
    label.setWidth("50%");
    VBoxLayout layout = new VBoxLayout(VBoxLayout.VBoxLayoutAlign.CENTER);
    ContentPanel panel = new ContentPanel();
    panel.setHeaderVisible(false);
    panel.setLayout(layout);
    panel.add(label, new RowData(1, -1, new Margins(4)));
    panel.add(retryButton, new RowData(-1, -1, new Margins(4)));
    return panel;
}
Also used : VBoxLayout(com.extjs.gxt.ui.client.widget.layout.VBoxLayout) RowData(com.extjs.gxt.ui.client.widget.layout.RowData) Button(com.extjs.gxt.ui.client.widget.button.Button) ButtonEvent(com.extjs.gxt.ui.client.event.ButtonEvent) Margins(com.extjs.gxt.ui.client.util.Margins) Text(com.extjs.gxt.ui.client.widget.Text) ContentPanel(com.extjs.gxt.ui.client.widget.ContentPanel)

Example 4 with Margins

use of com.extjs.gxt.ui.client.util.Margins 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)

Example 5 with Margins

use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.

the class CollapsibleTabPanel method expandTabs.

private void expandTabs() {
    getBody().setVisible(true);
    layoutData.setSize(tabPanelExandedSize);
    layoutData.setMargins(new Margins(5, 0, 0, 0));
    layoutData.setSplit(true);
    tabPanelCollapsed = false;
    getParentLayout().layout();
}
Also used : Margins(com.extjs.gxt.ui.client.util.Margins)

Aggregations

Margins (com.extjs.gxt.ui.client.util.Margins)13 BorderLayoutData (com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)7 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)2 Text (com.extjs.gxt.ui.client.widget.Text)2 ButtonEvent (com.extjs.gxt.ui.client.event.ButtonEvent)1 Size (com.extjs.gxt.ui.client.util.Size)1 Component (com.extjs.gxt.ui.client.widget.Component)1 Button (com.extjs.gxt.ui.client.widget.button.Button)1 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)1 FlowData (com.extjs.gxt.ui.client.widget.layout.FlowData)1 FormData (com.extjs.gxt.ui.client.widget.layout.FormData)1 RowData (com.extjs.gxt.ui.client.widget.layout.RowData)1 VBoxLayout (com.extjs.gxt.ui.client.widget.layout.VBoxLayout)1 Filter (org.activityinfo.legacy.shared.command.Filter)1 PivotFilterPanel (org.activityinfo.ui.client.component.report.editor.chart.PivotFilterPanel)1 PivotGridPanel (org.activityinfo.ui.client.component.report.view.PivotGridPanel)1