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