static void onClosed() { if (closeHandlersInitialized) { CloseEvent.fire(getHandlers(), null); } }
/** * Adds this handler to the Window. * * @param <H> the type of handler to add * @param type the event type * @param handler the handler * @return {@link HandlerRegistration} used to remove the handler */ private static <H extends EventHandler> HandlerRegistration addHandler( GwtEvent.Type<H> type, final H handler) { return getHandlers().addHandler(type, handler); }
static void onResize() { if (resizeHandlersInitialized) { // On webkit and IE we sometimes get duplicate window resize events. // Here, we manually filter them. int width = getClientWidth(); int height = getClientHeight(); if (lastResizeWidth != width || lastResizeHeight != height) { lastResizeWidth = width; lastResizeHeight = height; ResizeEvent.fire(getHandlers(), width, height); } } }
/** * Adds this handler to the Window. * * @param <H> the type of handler to add * @param type the event type * @param handler the handler * @return {@link HandlerRegistration} used to remove the handler */ private static <H extends EventHandler> HandlerRegistration addHandler( GwtEvent.Type<H> type, final H handler) { return getHandlers().addHandler(type, handler); }
/** * Adds this handler to the Window. * * @param <H> the type of handler to add * @param type the event type * @param handler the handler * @return {@link HandlerRegistration} used to remove the handler */ private static <H extends EventHandler> HandlerRegistration addHandler( GwtEvent.Type<H> type, final H handler) { return getHandlers().addHandler(type, handler); }
static void onClosed() { if (closeHandlersInitialized) { CloseEvent.fire(getHandlers(), null); } }
static void onClosed() { if (closeHandlersInitialized) { CloseEvent.fire(getHandlers(), null); } }
static void onResize() { if (resizeHandlersInitialized) { // On webkit and IE we sometimes get duplicate window resize events. // Here, we manually filter them. int width = getClientWidth(); int height = getClientHeight(); if (lastResizeWidth != width || lastResizeHeight != height) { lastResizeWidth = width; lastResizeHeight = height; ResizeEvent.fire(getHandlers(), width, height); } } }
static void onResize() { if (resizeHandlersInitialized) { // On webkit and IE we sometimes get duplicate window resize events. // Here, we manually filter them. int width = getClientWidth(); int height = getClientHeight(); if (lastResizeWidth != width || lastResizeHeight != height) { lastResizeWidth = width; lastResizeHeight = height; ResizeEvent.fire(getHandlers(), width, height); } } }