List of usage examples for com.google.gwt.event.shared HandlerManager HandlerManager
public HandlerManager(Object source)
From source file:fr.putnami.pwt.core.widget.client.TableSelecter.java
License:Open Source License
protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); }/*from w w w .j a v a2s .c om*/ return this.handlerManager; }
From source file:gwt.test.client.GWTCharting.java
License:Open Source License
public void onModuleLoad() { ChartingServiceAsync rpcService = GWT.create(ChartingService.class); HandlerManager eventBus = new HandlerManager(null); AppController appViewer = new AppController(rpcService, eventBus); appViewer.go(RootLayoutPanel.get()); }
From source file:hudson.gwtmarketplace.client.GWT_Marketplace.java
License:Open Source License
/** * This is the entry point method./*from w w w . j av a 2 s . c o m*/ */ public void onModuleLoad() { Pages.init((PageLoader) GWT.create(PageLoader.class), this.layoutPage = new LayoutPage(), new HandlerManager(null), true).addDefaultEventHandlers().add(new AuthenticationPageEventHandler()); // load the current logged in user new LoginCommand() { @Override public void onSuccess(UserInfo result) { clearContent(); RootPanel.get("content").add(layoutPage); Pages.get().showStartPage(true); } public void onFailure(Throwable e) { clearContent(); RootPanel.get("content").add(layoutPage); Pages.get().showStartPage(false); }; }.execute(); }
From source file:lh.api.showcase.client.Showcase.java
License:Apache License
/** * This is the entry point method./* www.j a v a 2 s .com*/ */ public void onModuleLoad() { logger.info("Application laoding"); Log.setUncaughtExceptionHandler(); HandlerManager eventBus = new HandlerManager(null); AppController appController = new AppController(ReferenceDataServiceAsync.Util.getInstance(), OperationsServiceAsync.Util.getInstance(), OffersServiceAsync.Util.getInstance(), eventBus); appController.go(RootPanel.get()); }
From source file:mr.davidsanderson.uml.client.impl.GraphEventBusImpl.java
License:Apache License
/** * Ensures the existence of the handler manager. * //from w w w . j a v a 2s.c o m * @return the handler manager * */ // copied from GWT 1.6 Widget private HandlerManager ensureHandlers() { return handlerManager == null ? handlerManager = new HandlerManager(this) : handlerManager; }
From source file:no.eirikb.bomberman.client.Bomberman.java
License:BEER-WARE LICENSE
@Override public void onModuleLoad() { RootPanel version = RootPanel.get("version"); if (version != null) { version.getElement().setInnerHTML(VERSION); }//ww w . j a va 2 s. co m LobbyServiceAsync lobbyService = GWT.create(LobbyService.class); GameServiceAsync gameService = GWT.create(GameService.class); HandlerManager eventBus = new HandlerManager(null); AppController appViewer = new AppController(lobbyService, gameService, eventBus); appViewer.go(RootPanel.get("bombermanContent")); }
From source file:org.activityinfo.ui.client.component.filter.FilterPanelSet.java
License:Open Source License
private HandlerManager ensureHandlers() { if (manager == null) { manager = new HandlerManager(this); myRegistrations = new ArrayList<HandlerRegistration>(); for (FilterPanel panel : panels) { HandlerRegistration registration = panel.addValueChangeHandler(new ValueChangeHandler<Filter>() { @Override/*from w w w. j a va2 s.co m*/ public void onValueChange(ValueChangeEvent<Filter> event) { // reset attribute- and partner filters when a different activity, database (data entry) // or indicator (reports) is selected if (event.getSource() instanceof ActivityFilterPanel || event.getSource() instanceof IndicatorFilterPanel) { clearAttributeAndPartnerFilters(); } Filter value = composeFilter(new Filter(), null); Log.debug("FilterPanelSet: Filter changed = " + value); ValueChangeEvent.fire(FilterPanelSet.this, value); } }); myRegistrations.add(registration); } } return manager; }
From source file:org.apache.openjpa.trader.client.OpenTrader.java
License:Apache License
/** * ------------------------------------------------------------------------ * The entry point for GWT module./*from w w w .j a v a2 s . c o m*/ * ------------------------------------------------------------------------ */ public void onModuleLoad() { GWT.setUncaughtExceptionHandler(this); eventBus = new HandlerManager(this); new LoginDialog(this).center(); }
From source file:org.appverse.web.framework.frontend.gwt.widgets.search.suggest.impl.gxt.SuggestWidgetImpl.java
License:Appverse Public License
public void initWidget() { handlerManager = new HandlerManager(this); initProvidedWidgets();//w w w.j ava2 s.c o m initWidget(uiBinder.createAndBindUi(this)); initLoaders(); }
From source file:org.appverse.web.showcases.gwtshowcase.gwtfrontend.common.widgets.toolbar.impl.gxt.ToolbarWidgetImpl.java
License:Appverse Public License
public void initWidget() { handlerManager = new HandlerManager(this); initProvidedWidgets();//from ww w . j a va 2s . co m initWidget(uiBinder.createAndBindUi(this)); }