Search in sources :

Example 6 with Margins

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()))));
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins)

Example 7 with Margins

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;
}
Also used : FormData(com.extjs.gxt.ui.client.widget.layout.FormData) Margins(com.extjs.gxt.ui.client.util.Margins)

Example 8 with Margins

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);
}
Also used : Size(com.extjs.gxt.ui.client.util.Size) Margins(com.extjs.gxt.ui.client.util.Margins) Component(com.extjs.gxt.ui.client.widget.Component)

Example 9 with 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);
}
Also used : BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins)

Example 10 with Margins

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);
}
Also used : PivotFilterPanel(org.activityinfo.ui.client.component.report.editor.chart.PivotFilterPanel) Filter(org.activityinfo.legacy.shared.command.Filter) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) 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