public class Popups extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Popups.Position
Positions supported by
show(T, com.threerings.gwt.ui.Popups.Position, com.google.gwt.user.client.ui.Widget) and other methods. |
static interface |
Popups.Thunk
Used to defer the creation of a popup panel.
|
| Constructor and Description |
|---|
Popups() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bindPopped(Value<Boolean> popped,
PopupPanel panel)
Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e.
|
static void |
bindPopped(Value<Boolean> popped,
Popups.Position pos,
Widget target,
PopupPanel panel)
Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e.
|
static void |
bindPopped(Value<Boolean> popped,
Popups.Position pos,
Widget target,
Popups.Thunk thunk)
Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e.
|
static void |
bindPopped(Value<Boolean> popped,
Popups.Thunk thunk)
Binds the popped up state of a popup to the supplied boolean value and vice versa (i.e.
|
static <T extends PopupPanel> |
centerOn(T popup,
int ypos)
Centers the supplied vertically on the supplied trigger widget.
|
static <T extends PopupPanel> |
centerOn(T popup,
Widget centerOn)
Centers the supplied vertically on the supplied trigger widget.
|
static ClickHandler |
createHider(PopupPanel popup)
Creates a click handler that hides the specified popup.
|
static InfoPopup |
error(String message)
Displays error feedback to the user in a non-offensive way.
|
static InfoPopup |
error(String message,
Popups.Position pos,
Widget source)
Displays error feedback to the user in a non-offensive way.
|
static InfoPopup |
errorAbove(String message,
Widget source)
Displays error feedback to the user in a non-offensive way.
|
static InfoPopup |
errorBelow(String message,
Widget source)
Displays error feedback to the user in a non-offensive way.
|
static void |
errorNear(String message,
Widget source)
|
static InfoPopup |
info(String message)
Displays an info message centered in the browser window.
|
static InfoPopup |
info(String message,
Popups.Position pos,
Widget target)
Displays an info message below the specified widget.
|
static InfoPopup |
infoAbove(String message,
Widget target)
Displays an info message below the specified widget.
|
static InfoPopup |
infoBelow(String message,
Widget target)
Displays an info message below the specified widget.
|
static void |
infoNear(String message,
Widget target)
|
static InfoPopup |
infoOn(String message,
Widget target)
Displays an info message centered horizontally on the page and centered vertically on the
specified target widget.
|
static void |
makeDraggable(HasAllMouseHandlers dragHandle,
PopupPanel target)
Adds mouse handlers to the specified drag handle that cause the supplied target popup to be
dragged around the display.
|
static PopupPanel |
newPopup(String styleName,
Widget contents)
Creates and returns a new popup with the specified style name and contents.
|
static PopupPanel |
newPopup(String styleName,
Widget contents,
Popups.Position pos,
Widget target)
Creates a new popup with the specified style name and contents and shows it near the
specified target widget.
|
static <T extends PopupPanel> |
show(T popup,
Popups.Position pos,
Widget target)
Shows the supplied popup in the specified position relative to the specified target widget.
|
static <T extends PopupPanel> |
showAbove(T popup,
Widget target)
Shows the supplied popup panel near the specified target.
|
static <T extends PopupPanel> |
showBelow(T popup,
Widget target)
Shows the supplied popup panel below the specified target.
|
static void |
showNear(PopupPanel popup,
Widget target)
Deprecated.
|
static <T extends PopupPanel> |
showOver(T popup,
Widget target)
Shows the supplied popup panel over the specified target.
|
public static InfoPopup info(String message)
@Deprecated public static void infoNear(String message, Widget target)
public static InfoPopup infoAbove(String message, Widget target)
public static InfoPopup infoBelow(String message, Widget target)
public static InfoPopup infoOn(String message, Widget target)
public static InfoPopup info(String message, Popups.Position pos, Widget target)
public static InfoPopup error(String message)
@Deprecated public static void errorNear(String message, Widget source)
public static InfoPopup errorAbove(String message, Widget source)
public static InfoPopup errorBelow(String message, Widget source)
public static InfoPopup error(String message, Popups.Position pos, Widget source)
public static <T extends PopupPanel> T show(T popup, Popups.Position pos, Widget target)
@Deprecated public static void showNear(PopupPanel popup, Widget target)
showBelow(T, com.google.gwt.user.client.ui.Widget)public static <T extends PopupPanel> T showAbove(T popup, Widget target)
public static <T extends PopupPanel> T showOver(T popup, Widget target)
public static <T extends PopupPanel> T showBelow(T popup, Widget target)
public static <T extends PopupPanel> T centerOn(T popup, Widget centerOn)
public static <T extends PopupPanel> T centerOn(T popup, int ypos)
public static PopupPanel newPopup(String styleName, Widget contents)
public static PopupPanel newPopup(String styleName, Widget contents, Popups.Position pos, Widget target)
public static ClickHandler createHider(PopupPanel popup)
public static void bindPopped(Value<Boolean> popped, Popups.Thunk thunk)
public static void bindPopped(Value<Boolean> popped, PopupPanel panel)
public static void bindPopped(Value<Boolean> popped, Popups.Position pos, Widget target, Popups.Thunk thunk)
public static void bindPopped(Value<Boolean> popped, Popups.Position pos, Widget target, PopupPanel panel)
public static void makeDraggable(HasAllMouseHandlers dragHandle, PopupPanel target)
Copyright © 2013. All Rights Reserved.