本文整理了Java中com.google.gwt.user.client.Window.getHandlers()
方法的一些代码示例,展示了Window.getHandlers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.getHandlers()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Window
类名称:Window
方法名:getHandlers
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
static void onClosed() {
if (closeHandlersInitialized) {
CloseEvent.fire(getHandlers(), null);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* 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);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
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);
}
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* 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);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* 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);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
static void onClosed() {
if (closeHandlersInitialized) {
CloseEvent.fire(getHandlers(), null);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
static void onClosed() {
if (closeHandlersInitialized) {
CloseEvent.fire(getHandlers(), null);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
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);
}
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!