use of com.sencha.gxt.widget.core.client.container.Viewport in project mvp4g2-examples by mvp4g.
the class ShellView method createView.
public void createView() {
this.viewport = new Viewport();
this.shell = new BorderLayoutContainer();
viewport.add(this.shell);
this.northContainer = createContentPanel();
BorderLayoutContainer.BorderLayoutData bldNorth = new BorderLayoutContainer.BorderLayoutData(.4);
bldNorth.setCollapsible(true);
bldNorth.setSplit(true);
this.shell.setNorthWidget(this.northContainer, bldNorth);
this.southContainer = createContentPanel();
BorderLayoutContainer.BorderLayoutData bldSouth = new BorderLayoutContainer.BorderLayoutData(36);
this.shell.setSouthWidget(this.southContainer, bldSouth);
this.centerContainer = new SimpleContainer();
this.shell.setCenterWidget(this.centerContainer);
}
use of com.sencha.gxt.widget.core.client.container.Viewport in project activityinfo by bedatadriven.
the class AppEntryPoint method onModuleLoad.
@Override
public void onModuleLoad() {
LOGGER.info("user.agent = " + System.getProperty("user.agent"));
LOGGER.info("gxt.user.agent = " + System.getProperty("gxt.user.agent"));
LOGGER.info("gxt.device = " + System.getProperty("gxt.device"));
Icons.INSTANCE.ensureInjected();
AppCache appCache = new AppCache();
AppCacheMonitor3 monitor = new AppCacheMonitor3(appCache);
monitor.start();
EventBus eventBus = new SimpleEventBus();
PlaceController placeController = new PlaceController(eventBus);
ConnectionListener connectionListener = new ConnectionListener();
connectionListener.start();
ActivityInfoClientAsync client = new ActivityInfoClientAsyncImpl(findServerUrl());
HttpStore httpStore = new HttpStore(connectionListener.getOnline(), client, Scheduler.get());
OfflineStore offlineStore = new OfflineStore(httpStore, IDBFactoryImpl.create());
FormStore formStore = new FormStoreImpl(httpStore, offlineStore, Scheduler.get());
LocalStorage storage = LocalStorage.create();
Viewport viewport = new Viewport();
AppFrame appFrame = new AppFrame(appCache, httpStore, offlineStore);
ActivityMapper activityMapper = new AppActivityMapper(formStore, storage);
ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(appFrame.getDisplayWidget());
AppPlaceHistoryMapper historyMapper = new AppPlaceHistoryMapper();
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, DEFAULT_PLACE);
// Start synchronizer...
RecordSynchronizer synchronizer = new RecordSynchronizer(httpStore, offlineStore);
viewport.add(appFrame);
RootLayoutPanel.get().add(viewport);
historyHandler.handleCurrentHistory();
}
Aggregations