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