com.google.gwt.event.shared.HandlerManager Java Examples
The following examples show how to use
com.google.gwt.event.shared.HandlerManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DiagramController.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
/** * Initialize the controller diagram. Use this constructor to start your * diagram. A code sample is : <br> * <br> * <code> * DiagramController controller = new DiagramController(400,400);<br> * RootPanel.get().add(controller.getView()); * </code> * * @param canvasWidth width expressed in pixels * @param canvasHeight height expressed in pixels */ public DiagramController(int canvasWidth, int canvasHeight) { this.canvasWidth = canvasWidth; this.canvasHeight = canvasHeight; this.topCanvas = new MultiBrowserDiagramCanvas(canvasWidth, canvasHeight); this.backgroundCanvas = new BackgroundCanvas(canvasWidth, canvasHeight); handlerManager = new HandlerManager(topCanvas); LinksClientBundle.INSTANCE.css().ensureInjected(); initWidgetPanel(topCanvas); initMouseHandlers(topCanvas); initMenu(); timer.scheduleRepeating(refreshRate); frameTimer.scheduleRepeating(1000); ContextMenu.disableBrowserContextMenu(widgetPanel.asWidget().getElement()); ContextMenu.disableBrowserContextMenu(topCanvas.asWidget().getElement()); }
Example #2
Source File: MouseWheelControl.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
/** * Instantiates the control with the default configuration. * * @param handlerManager * A {@link HandlerManager} */ public MouseWheelControl(HandlerManager handlerManager) { this.handlerManager = Validate.notNull(handlerManager); MouseWheelControlEventHandler eventHandler = new MouseWheelControlEventHandler(); this.handlerManager.addHandler(ViewportMouseWheelEvent.TYPE, eventHandler); this.handlerManager.addHandler(SetDomainBoundsEvent.TYPE, eventHandler); this.handlerManager.addHandler(SetMaxDomainBoundsEvent.TYPE, eventHandler); this.handlerManager.addHandler(SetDataAreaPixelBoundsEvent.TYPE, eventHandler); this.handlerManager.addHandler(SetViewportPixelBoundsEvent.TYPE, eventHandler); setZoomFactor(0.2); setPreviewZoomByRescalingTheImage(true); setFireLoadImageDataEvent(true); setLoadImageDataEventFiringDelay(150); }
Example #3
Source File: MonitorPresenter.java From EasyML with Apache License 2.0 | 6 votes |
public MonitorPresenter(HandlerManager eventBus, View view, String bdaJobId, String oozieJobId) { this.eventBus = eventBus; this.view = view; this.headerLoader = new HeaderLoader(eventBus, view.getHeaderView(), MonitorPresenter.this); this.bdaJobMonitor = new BdaJobMonitor(this); this.diagramBuilder = new DiagramBuilder(this); this.currentJob = new BdaJob(); this.currentJob.setJobId(bdaJobId); this.currentJob.setAccount(AppController.email); this.currentOozieJob = new OozieJob(); this.currentOozieJob.setId(oozieJobId); this.currentOozieJob.setAccount(AppController.email); instanceFlag = true; this.arr = AppController.power.split(""); }
Example #4
Source File: UTCDateBoxImplHtml4.java From gwt-traction with Apache License 2.0 | 5 votes |
public UTCDateBoxImplHtml4() { handlerManager = new HandlerManager(this); datebox = new DateBox(); datebox.addValueChangeHandler(new ValueChangeHandler<Date>() { @Override public void onValueChange(ValueChangeEvent<Date> event) { // pass this event onto our handlers after converting // the value fireValueChangeEvent(UTCDateBox.date2utc(event.getValue())); } }); }
Example #5
Source File: EMLStudio.java From EasyML with Apache License 2.0 | 5 votes |
/** * EMLStudio module load method */ @Override public void onModuleLoad() { HandlerManager eventBus = new HandlerManager(null); LoginController loginController = new LoginController(eventBus); AppController appViewer = new AppController(eventBus, loginController); appViewer.go(RootLayoutPanel.get()); }
Example #6
Source File: AbstractWidget.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
public AbstractWidget(AbstractWidget source) { this(source.tagName); this.path = source.path; this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); StyleUtils.cloneStyle(this, source); }
Example #7
Source File: AbstractWidget.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #8
Source File: AbstractOutput.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
protected AbstractOutput(AbstractOutput<T> source) { this.tag = source.tag; this.path = source.path; this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); StyleUtils.cloneStyle(this, source); }
Example #9
Source File: AbstractOutput.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #10
Source File: AbstractHTMLPanel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
protected AbstractHTMLPanel(AbstractHTMLPanel source) { this(source.tag, source.html); this.path = source.path; for (Map.Entry<Widget, String> widgetEntry : source.children.entrySet()) { this.addAndReplaceElement(WidgetUtils.cloneWidget(widgetEntry.getKey()), widgetEntry.getValue()); } this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); StyleUtils.cloneStyle(this, source); }
Example #11
Source File: AbstractHTMLPanel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #12
Source File: AbstractComposite.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #13
Source File: AbstractPanel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
protected AbstractPanel(AbstractPanel source) { this(source.tagName); this.path = source.path; this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); StyleUtils.cloneStyle(this, source); }
Example #14
Source File: AbstractPanel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #15
Source File: CompositeFocusHelper.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
private CompositeFocusHelper(Widget containerWidget, HasFocusHandlers... hasFocusContents) { this.containerWidget = containerWidget; containerWidget.addDomHandler(this.keyDownHandler, KeyDownEvent.getType()); if (hasFocusContents != null) { for (HasFocusHandlers hasFocus : hasFocusContents) { this.addHasFocusContent(hasFocus); } } this.handlerManager = new HandlerManager(containerWidget); }
Example #16
Source File: TableSelecter.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
protected TableSelecter(TableSelecter<T> source) { super(source); this.singleSelection = source.singleSelection; this.selectionMode = source.selectionMode; this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); }
Example #17
Source File: ZoomBoxPresenter.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
/** * Instantiates the presenter. * * @param handlerManager * A {@link HandlerManager} * @param view * An implementation of {@link GenericWidgetView}. This is the * visual representation of the bounding box. */ public ZoomBoxPresenter(HandlerManager handlerManager, GenericWidgetView view) { this.handlerManager = handlerManager; this.view = view; ZoomBoxPresenterEventHandler eventHandler = new ZoomBoxPresenterEventHandler(); handlerManager.addHandler(ViewportDragInProgressEvent.TYPE, eventHandler); handlerManager.addHandler(ViewportDragFinishedEvent.TYPE, eventHandler); handlerManager.addHandler(SetDomainBoundsEvent.TYPE, eventHandler); handlerManager.addHandler(SetMaxDomainBoundsEvent.TYPE, eventHandler); handlerManager.addHandler(StateChangeEvent.TYPE, eventHandler); setMinimalDragOffsetInPixel(15); setFireLoadImageDataEvent(true); }
Example #18
Source File: DragImageControl.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
/** * Registers with the handlerManager to receive all required events. * * @param handlerManager * A {@link HandlerManager} */ public DragImageControl(HandlerManager handlerManager) { this.handlerManager = handlerManager; DragImageControlEventHandler eventHandler = new DragImageControlEventHandler(); handlerManager.addHandler(ViewportDragInProgressEvent.TYPE, eventHandler); handlerManager.addHandler(ViewportDragFinishedEvent.TYPE, eventHandler); handlerManager.addHandler(SetDomainBoundsEvent.TYPE, eventHandler); handlerManager.addHandler(SetMaxDomainBoundsEvent.TYPE, eventHandler); handlerManager.addHandler(StateChangeEvent.TYPE, eventHandler); setFireLoadImageDataEvent(true); }
Example #19
Source File: MonitorView.java From EasyML with Apache License 2.0 | 5 votes |
@Override public HistoryPopupPanel getHistoryPopup(String jobId,boolean isExample, HandlerManager eventBus) { // TODO Auto-generated method stub historyPopupPanel = new HistoryPopupPanel(jobId, isExample, eventBus); return historyPopupPanel; }
Example #20
Source File: MonitorPresenter.java From EasyML with Apache License 2.0 | 5 votes |
public MonitorPresenter(HandlerManager eventBus, View view, String bdaJobId) { this.eventBus = eventBus; this.view = view; this.headerLoader = new HeaderLoader(eventBus, view.getHeaderView(), MonitorPresenter.this); this.bdaJobMonitor = new BdaJobMonitor(this); this.diagramBuilder = new DiagramBuilder(this); this.currentJob = new BdaJob(); this.currentJob.setJobId(bdaJobId); this.currentJob.setAccount(AppController.email); this.arr = AppController.power.split(""); }
Example #21
Source File: HistoryPopupPanel.java From EasyML with Apache License 2.0 | 5 votes |
public HistoryPopupPanel(String jobId,boolean isExample, HandlerManager eventBus) { this.eventBus = eventBus; this.bdaJobId = jobId; this.isExample = isExample; init(); eventBind(); }
Example #22
Source File: HeaderLoader.java From EasyML with Apache License 2.0 | 4 votes |
public HeaderLoader(HandlerManager eventBus, HeaderView headerView,MonitorPresenter presenter) { this.eventBus = eventBus; this.headerView = headerView; this.presenter = presenter; }
Example #23
Source File: AppController.java From EasyML with Apache License 2.0 | 4 votes |
public AppController(HandlerManager eventBus, LoginController loginController) { this.eventBus = eventBus; this.loginController = loginController; bind(); }
Example #24
Source File: ResetpwdPresenter.java From EasyML with Apache License 2.0 | 4 votes |
public ResetpwdPresenter(HandlerManager eventBus, ResetpwdView resetpwdView) { this.eventBus = eventBus; this.resetpwdView = resetpwdView; }
Example #25
Source File: DebugPanelFilter.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public Config() { this.handlers = new HandlerManager(this); }
Example #26
Source File: TableSelecter.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
protected HandlerManager createHandlerManager() { if (this.handlerManager == null) { this.handlerManager = new HandlerManager(this); } return this.handlerManager; }
Example #27
Source File: AccountPresenter.java From EasyML with Apache License 2.0 | 4 votes |
public AccountPresenter(HandlerManager eventBus, AccountView accountView) { this.eventBus = eventBus; this.accountView = accountView; }
Example #28
Source File: RegisterPresenter.java From EasyML with Apache License 2.0 | 4 votes |
public RegisterPresenter(HandlerManager eventBus, RegisterView registerView) { this.eventBus = eventBus; this.registerView = registerView; }
Example #29
Source File: AbstractDatastreamEditor.java From proarc with GNU General Public License v3.0 | 4 votes |
private HandlerManager createHandlerManager() { return new HandlerManager(this); }
Example #30
Source File: AbstractComposite.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
protected AbstractComposite(AbstractComposite source) { this.handlerManager = new HandlerManager(source.handlerManager, this); this.handlerManager.resetSinkEvents(); this.styleToClone = source.getElement().getClassName(); }