List of usage examples for com.google.gwt.user.client.ui ResizableDockLayoutPanel ResizableDockLayoutPanel
public ResizableDockLayoutPanel(Unit unit)
From source file:org.onebusaway.webapp.gwt.oba_application.view.MainPage.java
License:Apache License
public void initialize() { System.out.println("=================== creating results page..."); // initWidget(_uiBinder.createAndBindUi(this)); _dockLayoutPanel = new ResizableDockLayoutPanel(Unit.EM); _resultsPanel = new FlowPanel(); _mapPanel = makeMapPanel();/*w w w. j av a 2s .co m*/ _dockLayoutPanel.addNorth(_searchWidget, 4); _dockLayoutPanel.addWest(_resultsPanel, 18); _dockLayoutPanel.add(_mapPanel); initWidget(_dockLayoutPanel); _searchWidget.setDockLayoutPanelParent(_dockLayoutPanel); for (Widget widget : _resultPanelWidgets) _resultsPanel.add(widget); _map.addControl(new LargeMapControl()); _map.addControl(new MapTypeControl()); _map.addControl(new ScaleControl()); _map.setScrollWheelZoomEnabled(true); // We delay initialization of the map DeferredCommand.addCommand(new Command() { public void execute() { _map.checkResizeAndCenter(); } }); }