@JsType(namespace="xgl") public abstract class AbstractWindow<W extends AbstractWindow<W>> extends Widget<HTMLDivElement,W> implements HasHeader<WindowHeader<W>>, HasResizeHandlers<W>, HasWindowBeforeCloseHandlers<W>, HasWindowCloseHandlers<W>, HasWindowShowHandlers<W>
Modifier and Type | Field and Description |
---|---|
static int |
SNAPPING_DISTANCE |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
AbstractWindow() |
AbstractWindow(HTMLDivElement element) |
addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, 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, 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
addResizeHandler
addWindowBeforeCloseHandler
addWindowCloseHandler
addWindowShowHandler
addEventHandler, addEventHandler
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
public static final int SNAPPING_DISTANCE
@JsIgnore public AbstractWindow()
@JsConstructor public AbstractWindow(@JsOptional HTMLDivElement element)
element
- public int getLeft()
public int getTop()
@WillMutate protected void doBlur()
@WillMutate protected void doFocus()
public W focus()
@WillMutate public W setTitle(String title)
public String getTitle()
@WillMeasure public int getHeight()
@WillMeasure public int getWidth()
@WillMeasure public int getBottom()
@WillMeasure public int getRight()
@WillMutate @JsIgnore public W setLeft(int x)
@WillMutate @JsIgnore public W setTop(int y)
@WillMutate public W setPosition(int x, int y)
@WillMutate public W setBounds(double x, double y, double width, double height)
public W add(Widget<? extends Element<?>,?> widget)
add
in class Widget<HTMLDivElement,W extends AbstractWindow<W>>
public W remove(Widget<? extends Element<?>,?> widget)
remove
in class Widget<HTMLDivElement,W extends AbstractWindow<W>>
public boolean hasHeader()
public W setHasHeader(boolean hasHeader)
public boolean hasFooter()
public WindowContent<W> getContent()
public Desktop getViewport()
public WindowManager getWindowManager()
public WindowHeader<W> getHeader()
getHeader
in interface HasHeader<WindowHeader<W extends AbstractWindow<W>>>
public boolean isMaximizable()
public W setMaximizable(boolean maximizable)
public boolean isMaximized()
public boolean isClosed()
public W maximize()
public boolean isMinimized()
public W minimize()
public W restore()
public boolean isMinimizable()
public W setMinimizable(boolean minimizable)
public boolean isClosable()
public WindowButtonsLocation getWindowButtonsLocation()
public WindowButtonsOrder getWindowButtonsOrder()
public W setWindowButtonsOrder(WindowButtonsOrder windowButtonsOrder)
public W setWindowButtonsLocation(WindowButtonsLocation windowButtonsLocation)
public W setClosable(boolean closable)
protected void fireResizeEvent()
fireResizeEvent
in class Widget<HTMLDivElement,W extends AbstractWindow<W>>
public W clearRestore()
@JsIgnore public W close()
@JsIgnore public W close(boolean force)
Copyright © 2018 Xalys. All rights reserved.