Example:
new DelayedRunnable() { @Override public void run() { maximize(WindowState.NORMAL); } };
14201421142214231424142514261427142814291430
DOM.setStyleAttribute(glassPanel.getElement(), "zIndex", DOM.getStyleAttribute(WindowPanel.this.getElement(), "zIndex")); } windowController.getBoundaryPanel().add(glassPanel, 0, 0); new DelayedRunnable() { @Override public void run() { WindowPanel.super.show(); } };
163164165166167168169170171172173
* * @see com.google.gwt.user.client.WindowResizeListener#onWindowResized(int, * int) */ public void onWindowResized(int width, int height) { new DelayedRunnable() { public void run() { center(); adjustGlassPanelBounds(); } };
134135136137138139140141142143144
public void setText(String text) { this.description.setText(text); } public void onWindowResized(int width, int height) { new DelayedRunnable(333) { public void run() { final int width = Window.getClientWidth(); getWidget().setPixelSize(Math.max(width / 3, WIDTH), HEIGHT); center(); }
7778798081828384858687
final int left = (cw - WIDTH - 20); final int top = ch - HEIGHT - 20 - (level * (HEIGHT + 20)); if (top < 0) { new DelayedRunnable() { public void run() { InfoPanel.SLOTS.set(level, null); InfoPanel.show(infoPanel.caption.getText(), infoPanel.description.getText()); }
205206207208209210211212213214215
public void setText(String text) { this.description.setText(text); } public void onWindowResized(int width, int height) { new DelayedRunnable() { public void run() { final int width = Window.getClientWidth(); getWidget().setPixelSize(Math.max(width / 3, WIDTH), HEIGHT); center(); }
7879808182838485868788
case KEY_ESCAPE: hidePopup(); break; case KEY_DOWN: if (!popup.isAttached()) { new DelayedRunnable(1) { @Override public void run() { showPopup(); } };
7980818283848586878889
208209210211212213214215216217218
public void setText(String text) { this.description.setText(text); } public void onResize(ResizeEvent event) { new DelayedRunnable() { public void run() { final int width = Window.getClientWidth(); getWidget().setPixelSize(Math.max(width / 3, WIDTH), HEIGHT); center(); }
174175176177178179180181182183184
} }); } public void onResize(ResizeEvent event) { new DelayedRunnable() { public void run() { center(); adjustGlassPanelBounds(); } };