W
- public class WindowBeforeCloseEvent<W extends AbstractWindow<W>> extends Event<WindowBeforeCloseHandler<W>>
Event.Type<H extends EventHandler>
Modifier and Type | Field and Description |
---|---|
protected W |
target |
static Event.Type<WindowBeforeCloseHandler<? extends Widget<? extends Element,?>>> |
TYPE |
Constructor and Description |
---|
WindowBeforeCloseEvent() |
Modifier and Type | Method and Description |
---|---|
WindowBeforeCloseEvent<W> |
cancelClose() |
protected void |
dispatch(WindowBeforeCloseHandler<W> handler) |
W |
getTarget() |
Event.Type<WindowBeforeCloseHandler<W>> |
getType() |
boolean |
isCloseCanceled() |
boolean |
isForcedClose() |
void |
preventDefault() |
WindowBeforeCloseEvent<W> |
setForcedClose(boolean forcedClose) |
void |
setTarget(W target) |
assertLive, cast, checkIsInEventThread, getEventPhase, getSource, isLive, isPreventDefault, isStopPropagation, kill, releaseCapture, revive, setCapture, setCapture, setSource, stopPropagation
public static Event.Type<WindowBeforeCloseHandler<? extends Widget<? extends Element,?>>> TYPE
protected W extends AbstractWindow<W> target
public Event.Type<WindowBeforeCloseHandler<W>> getType()
getType
in class Event<WindowBeforeCloseHandler<W extends AbstractWindow<W>>>
protected void dispatch(WindowBeforeCloseHandler<W> handler)
dispatch
in class Event<WindowBeforeCloseHandler<W extends AbstractWindow<W>>>
public void setTarget(W target)
target
- the target to setpublic W getTarget()
public boolean isForcedClose()
public WindowBeforeCloseEvent<W> cancelClose()
public void preventDefault()
preventDefault
in class Event<WindowBeforeCloseHandler<W extends AbstractWindow<W>>>
public boolean isCloseCanceled()
public WindowBeforeCloseEvent<W> setForcedClose(boolean forcedClose)
forcedClose
- the forcedClose to setCopyright © 2018 Xalys. All rights reserved.