|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
org.xwiki.gwt.user.client.ui.DialogBox
public class DialogBox
Generic dialog box with optimized dragging.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
com.google.gwt.user.client.ui.PopupPanel.PositionCallback |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
static java.lang.String |
DRAGGING_STYLE
The style name used when the dialog is dragged. |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCaption()
|
com.google.gwt.user.client.ui.Image |
getIcon()
|
com.google.gwt.user.client.ui.Widget |
getWidget()
|
void |
hide()
|
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(java.lang.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)
|
void |
show()
|
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, showRelativeTo |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, iterator, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
public static final java.lang.String DRAGGING_STYLE
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.String getCaption()
public void setCaption(java.lang.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 class com.google.gwt.user.client.ui.SimplePanelSimplePanel.getWidget()public void setWidget(com.google.gwt.user.client.ui.Widget widget)
setWidget in class com.google.gwt.user.client.ui.PopupPanelPopupPanel.setWidget(Widget)protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanelPopupPanel#onPreviewNativeEvent(NativePreviewEvent)
public void onDragStart(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
onDragStart 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.DragListener.onDragStart(Widget, int, int)
public void onDrag(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
onDrag 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.DragListener.onDrag(Widget, int, int)
public void onDragEnd(com.google.gwt.user.client.ui.Widget sender,
int x,
int y)
onDragEnd 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.DragListener.onDragEnd(Widget, int, int)public void show()
show in class com.google.gwt.user.client.ui.PopupPanelPopupPanel.show()public void hide()
hide in class com.google.gwt.user.client.ui.PopupPanelPopupPanel.hide()public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerClickHandler.onClick(ClickEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||