public class DialogBox extends com.google.gwt.user.client.ui.PopupPanel implements DragListener, com.google.gwt.event.dom.client.ClickHandler
com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
static String |
DRAGGING_STYLE
The style name used when the dialog is dragged.
|
| Constructor and Description |
|---|
DialogBox()
Creates a new dialog that doesn't auto hide and is not modal.
|
DialogBox(boolean autoHide)
Creates a new dialog that is not modal.
|
DialogBox(boolean autoHide,
boolean modal)
Creates a new dialog.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption() |
com.google.gwt.user.client.ui.Image |
getIcon() |
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onDrag(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
This event is fired at the source of the drag, that is, the element where DragStart was fired, during the drag
operation.
|
void |
onDragEnd(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
The source of the drag will receive a DragEnd event when the drag operation is complete, whether it was
successful or not.
|
void |
onDragStart(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
Fired on an element when a drag is started.
|
protected void |
onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) |
void |
setCaption(String caption)
Sets the text of the caption bar.
|
void |
setIcon(com.google.gwt.user.client.ui.Image icon)
Sets the icon on left of the caption bar.
|
void |
setWidget(com.google.gwt.user.client.ui.Widget widget) |
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, show, showRelativeToadd, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringpublic static final String DRAGGING_STYLE
public DialogBox()
public DialogBox(boolean autoHide)
autoHide - Whether or not the dialog should auto hide when the user clicks outside of it.public DialogBox(boolean autoHide,
boolean modal)
autoHide - Whether or not the dialog should auto hide when the user clicks outside of it.modal - Specifies if the dialog box can loose focus.public String getCaption()
public void setCaption(String caption)
caption - the string to be placed on the caption barpublic com.google.gwt.user.client.ui.Image getIcon()
public void setIcon(com.google.gwt.user.client.ui.Image icon)
icon - the image to placed on the left of the caption barpublic com.google.gwt.user.client.ui.Widget getWidget()
getWidget in interface com.google.gwt.user.client.ui.HasOneWidgetgetWidget in class com.google.gwt.user.client.ui.SimplePanelpublic void setWidget(com.google.gwt.user.client.ui.Widget widget)
setWidget in interface com.google.gwt.user.client.ui.HasOneWidgetsetWidget in class com.google.gwt.user.client.ui.PopupPanelprotected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanelpublic void onDragStart(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
DragListeneronDragStart in interface DragListenersender - The object the user is requesting to drag.x - the horizontal coordinate of the mouse when the event was fired.y - the vertical coordinate of the mouse when the event was fired.public void onDrag(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
DragListeneronDrag in interface DragListenersender - The object being dragged.x - the horizontal coordinate of the mouse when the event was fired.y - the vertical coordinate of the mouse when the event was fired.public void onDragEnd(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
DragListeneronDragEnd in interface DragListenersender - The object the the user has stopped dragging.x - the horizontal coordinate of the mouse when the event was fired.y - the vertical coordinate of the mouse when the event was fired.public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerCopyright © 2004–2015 XWiki. All rights reserved.