List of usage examples for com.google.gwt.event.shared HandlerManager HandlerManager
public HandlerManager(Object source)
From source file:org.ducktools.tutorial.gwt.architecture.photoalbum.client.commons.eventbus.impl.EventBusImpl.java
License:Open Source License
public EventBusImpl() { handlerManager = new HandlerManager(null); }
From source file:org.dussan.vaadin.dcharts.DCharts.java
License:Apache License
public DCharts() { chartId = "dCharts-" + ((long) (Math.random() * 10000000000000000L)); // set init chart's dimensions setSizeFull();/*from w w w . ja va 2s. c o m*/ marginTop = 0; marginRight = 0; marginBottom = 0; marginLeft = 0; handlerManager = new HandlerManager(this); enableChartDataMouseEnterEvent = false; enableChartDataMouseLeaveEvent = false; enableChartDataClickEvent = false; enableChartDataRightClickEvent = false; enableChartImageChangeEvent = false; chartImageChangeDelay = 600; chartData = new HashMap<Integer, String>(); chartImageFormat = ChartImageFormat.PNG; downloadButtonEnable = false; downloadFilename = "chart"; downloadButtonLocation = DownloadButtonLocation.TOP_RIGHT; addChartContainer(); registerRpc(new DChartsServerRpc() { private static final long serialVersionUID = -3805014254043430235L; @Override public void onEventFired(Map<String, String> eventData) { processEvent(eventData); } }); }
From source file:org.ebayopensource.turmeric.monitoring.client.Console.java
License:Open Source License
/** * This is the entry point method./*from w w w . j a va2s . c om*/ */ public void onModuleLoad() { Window.setTitle(ConsoleUtil.constants.title()); final HandlerManager eventBus = new HandlerManager(null); Map<SupportedService, ConsoleService> serviceMap = createServiceMap(); AppController pageController = new AppController(eventBus, RootLayoutPanel.get(), serviceMap); pageController.start(); }
From source file:org.ebayopensource.turmeric.policy.adminui.client.PolicyAdminUI.java
License:Open Source License
/** * This is the entry point method./* w w w . j av a 2s .c o m*/ */ public void onModuleLoad() { Window.setTitle(PolicyAdminUIUtil.constants.title()); Window.addCloseHandler(new CloseHandler<Window>() { public void onClose(CloseEvent<Window> event) { //briefly save the login/password combo //NOTE when using gwt hosted mode, which is sloooow, the //cookie will already have expired before the reload is //completed, so don't expect this to work in hosted mode Date expiry = new Date(System.currentTimeMillis() + 1000); //TODO change to using secure cookies only! String cookie = AppUser.toCookie(); if (cookie != null) { Cookies.setCookie(AppKeyUtil.COOKIE_SESSID_KEY, cookie, expiry); //expiry, null, null, false); } } }); final HandlerManager eventBus = new HandlerManager(null); Map<SupportedService, PolicyAdminUIService> serviceMap = createServiceMap(); AppController pageController = new AppController(eventBus, RootLayoutPanel.get(), serviceMap); pageController.start(); }
From source file:org.eclipse.che.ide.ui.smartTree.DefaultGoInto.java
License:Open Source License
private HandlerManager ensureHandlers() { if (handlerManager == null) { handlerManager = new HandlerManager(this); }//from ww w . ja va 2 s.c o m return handlerManager; }
From source file:org.geomajas.gwt.client.action.ToolbarBaseAction.java
License:Open Source License
/** * Constructor for ToolbarBaseAction.//from w w w .ja v a2 s. co m * * @param icon icon * @param title title * @param tooltip tool tip * @since 1.10.0 */ public ToolbarBaseAction(String icon, String title, String tooltip) { this.icon = icon; this.title = title; this.tooltip = tooltip; handlerManager = new HandlerManager(this); }
From source file:org.geomajas.gwt.client.map.feature.FeatureEditor.java
License:Open Source License
public FeatureEditor(MapModel mapModel) { this.mapModel = mapModel; factory = new GeometryFactory(mapModel.getSrid(), mapModel.getPrecision()); handlerManager = new HandlerManager(this); }
From source file:org.geomajas.gwt.client.map.layer.AbstractLayer.java
License:Open Source License
protected AbstractLayer(MapModel mapModel, T layerInfo) { this.mapModel = mapModel; this.layerInfo = layerInfo; this.visible = layerInfo.isVisible(); this.updateShowing(false); handlerManager = new HandlerManager(this); }
From source file:org.geomajas.gwt.client.map.MapModel.java
License:Open Source License
/** * Initialize map model, coordinate system has to be filled in later (from configuration). * /* w w w . j a va 2 s.c om*/ * @param mapId map id * @param applicationId application id * @since 1.10.0 */ @Api public MapModel(String mapId, String applicationId) { this.id = mapId; this.applicationId = applicationId; featureEditor = new FeatureEditor(this); handlerManager = new HandlerManager(this); mapView = new MapView(); mapView.addMapViewChangedHandler(this); // refresh the map when the token changes GwtCommandDispatcher.getInstance().addTokenChangedHandler(new TokenChangedHandler() { public void onTokenChanged(TokenChangedEvent event) { if (event.isLoginPending()) { // avoid double refresh on re-login clear(); ClientConfigurationService.clear(); // refresh because configuration changed, clear cache } else { refresh(); // clearing is done in the refresh } } }); }
From source file:org.geomajas.gwt.client.map.MapModel.java
License:Open Source License
public MapModel(ClientMapInfo info) { this.id = info.getId(); this.applicationId = "bla"; featureEditor = new FeatureEditor(this); handlerManager = new HandlerManager(this); mapView = new MapView(); mapView.addMapViewChangedHandler(this); refresh(info);/*from ww w . j a v a 2s . co m*/ }