use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.
the class DataEntryPage method addFilterPane.
private void addFilterPane() {
filterPane = new FilterPane(dispatcher);
BorderLayoutData filterLayout = new BorderLayoutData(LayoutRegion.WEST);
filterLayout.setCollapsible(true);
filterLayout.setMargins(new Margins(0, 5, 0, 0));
filterLayout.setSplit(true);
add(filterPane, filterLayout);
filterPane.getSet().addValueChangeHandler(event -> eventBus.fireEvent(new NavigationEvent(NavigationHandler.NAVIGATION_REQUESTED, currentPlace.copy().setFilter(event.getValue()))));
}
use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.
the class LocationForm method buttonLayout.
private FormData buttonLayout() {
FormData containerLayout = new FormData();
containerLayout.setMargins(new Margins(0, 0, 0, LABEL_WIDTH + BUTTON_SPACE));
return containerLayout;
}
use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.
the class CompositeEditorLayout method onLayout.
@Override
protected void onLayout(Container<?> container, El target) {
super.onLayout(container, target);
Size size = target.getStyleSize();
Component page = container.getItem(0);
int hMargin = (size.width - 650) / 2;
Margins margins = new Margins(25, hMargin, 25, hMargin);
applyMargins(page.el(), margins);
}
use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.
the class PivotTableEditor method createPane.
private void createPane() {
pivotPanel = new PivotTrayPanel(eventBus, service);
BorderLayoutData east = new BorderLayoutData(Style.LayoutRegion.EAST);
east.setCollapsible(true);
east.setSplit(true);
east.setMargins(new Margins(0, 5, 0, 0));
add(pivotPanel, east);
}
use of com.extjs.gxt.ui.client.util.Margins in project activityinfo by bedatadriven.
the class PivotTableEditor method createFilterPane.
private void createFilterPane() {
filterPane = new PivotFilterPanel(eventBus, service, locator);
filterPane.applyBaseFilter(new Filter());
BorderLayoutData west = new BorderLayoutData(Style.LayoutRegion.WEST);
west.setMinSize(250);
west.setSize(250);
west.setCollapsible(true);
west.setSplit(true);
west.setMargins(new Margins(0, 0, 0, 0));
add(filterPane, west);
}
Aggregations