public abstract class AbstractDialog<E extends HTMLElement<E>,W extends AbstractDialog<E,W>> extends Widget<E,W> implements HasDialogCloseHandlers<W>, HasDialogShowHandlers<W>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDialog.Backdrop |
static class |
AbstractDialog.CloseType |
protected class |
AbstractDialog.Container |
Modifier and Type | Field and Description |
---|---|
protected AbstractDialog.Backdrop |
backdrop |
protected AbstractDialog.CloseType |
closeType |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
AbstractDialog(E element) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addDialogCloseHandler(DialogCloseHandler<W> dialogCloseHandler) |
HandlerRegistration |
addDialogShowHandler(DialogShowHandler<W> dialogShowHandler) |
abstract W |
close() |
W |
close(AbstractDialog.CloseType closeType) |
protected void |
fireDialogCloseEvent() |
protected void |
fireDialogShowEvent() |
AbstractDialog.CloseType |
getCloseType() |
abstract Widget<?,?> |
getContent() |
boolean |
isCloseOnEscape() |
void |
setCloseOnEscape(boolean closeOnEscape) |
abstract W |
show() |
add, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
protected AbstractDialog.CloseType closeType
protected AbstractDialog.Backdrop backdrop
public AbstractDialog(E element)
element
- the wrapped element by this widgetpublic abstract W show()
public abstract W close()
public W close(AbstractDialog.CloseType closeType)
public abstract Widget<?,?> getContent()
public HandlerRegistration addDialogCloseHandler(DialogCloseHandler<W> dialogCloseHandler)
addDialogCloseHandler
in interface HasDialogCloseHandlers<W extends AbstractDialog<E,W>>
public HandlerRegistration addDialogShowHandler(DialogShowHandler<W> dialogShowHandler)
addDialogShowHandler
in interface HasDialogShowHandlers<W extends AbstractDialog<E,W>>
public AbstractDialog.CloseType getCloseType()
protected void fireDialogCloseEvent()
protected void fireDialogShowEvent()
public void setCloseOnEscape(boolean closeOnEscape)
closeOnEscape
- the closeOnEscape to setpublic boolean isCloseOnEscape()
Copyright © 2018 Xalys. All rights reserved.