| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Panel com.google.gwt.user.client.ui.SimplePanel com.google.gwt.user.client.ui.PopupPanel com.google.gwt.user.client.ui.DialogBox
All known Subclasses: com.google.gwt.sample.mail.client.AboutDialog,
DialogBox | public class DialogBox extends PopupPanel implements HasHTML,MouseListener(Code) | | A form of popup that has a caption area at the top and can be dragged by the
user. Unlike a PopupPanel, calls to
DialogBox.setWidth(String) and
DialogBox.setHeight(String) will set the width and height of the dialog box
itself, even if a widget has not been added as yet.
CSS Style Rules
- .gwt-DialogBox { the outside of the dialog }
- .gwt-DialogBox .Caption { the caption }
Example
|
Constructor Summary | |
public | DialogBox() Creates an empty dialog box. | public | DialogBox(boolean autoHide) Creates an empty dialog box specifying its "auto-hide" property. | public | DialogBox(boolean autoHide, boolean modal) Creates an empty dialog box specifying its "auto-hide" property. |
DialogBox | public DialogBox()(Code) | | Creates an empty dialog box. It should not be shown until its child widget
has been added using
DialogBox.add(Widget) .
|
DialogBox | public DialogBox(boolean autoHide)(Code) | | Creates an empty dialog box specifying its "auto-hide" property. It should
not be shown until its child widget has been added using
DialogBox.add(Widget) .
Parameters: autoHide - true if the dialog should be automaticallyhidden when the user clicks outside of it |
DialogBox | public DialogBox(boolean autoHide, boolean modal)(Code) | | Creates an empty dialog box specifying its "auto-hide" property. It should
not be shown until its child widget has been added using
DialogBox.add(Widget) .
Parameters: autoHide - true if the dialog should be automaticallyhidden when the user clicks outside of it Parameters: modal - true if keyboard and mouse events for widgetsnot contained by the dialog should be ignored |
onEventPreview | public boolean onEventPreview(Event event)(Code) | | |
onMouseDown | public void onMouseDown(Widget sender, int x, int y)(Code) | | |
onMouseMove | public void onMouseMove(Widget sender, int x, int y)(Code) | | |
onMouseUp | public void onMouseUp(Widget sender, int x, int y)(Code) | | |
|
|