Uses of Class
javafx.stage.WindowEvent
| Package | Description |
|---|---|
| javafx.stage |
Provides the top-level container classes for JavaFX content.
|
-
Uses of WindowEvent in javafx.stage
Fields in javafx.stage with type parameters of type WindowEvent Modifier and Type Field Description static EventType<WindowEvent>WindowEvent. ANYCommon supertype for all window event types.static EventType<WindowEvent>WindowEvent. WINDOW_CLOSE_REQUESTThis event is delivered to a window when there is an external request to close that window.static EventType<WindowEvent>WindowEvent. WINDOW_HIDDENThis event occurs on window just after it is hidden.static EventType<WindowEvent>WindowEvent. WINDOW_HIDINGThis event occurs on window just before it is hidden.static EventType<WindowEvent>WindowEvent. WINDOW_SHOWINGThis event occurs on window just before it is shown.static EventType<WindowEvent>WindowEvent. WINDOW_SHOWNThis event occurs on window just after it is shown.Methods in javafx.stage that return WindowEvent Modifier and Type Method Description WindowEventWindowEvent. copyFor(Object newSource, EventTarget newTarget)WindowEventWindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)Creates a copy of the given event with the given fields substituted.Methods in javafx.stage that return types with arguments of type WindowEvent Modifier and Type Method Description EventType<WindowEvent>WindowEvent. getEventType()EventHandler<WindowEvent>Window. getOnCloseRequest()Gets the value of the property onCloseRequest.EventHandler<WindowEvent>Window. getOnHidden()Gets the value of the property onHidden.EventHandler<WindowEvent>Window. getOnHiding()Gets the value of the property onHiding.EventHandler<WindowEvent>Window. getOnShowing()Gets the value of the property onShowing.EventHandler<WindowEvent>Window. getOnShown()Gets the value of the property onShown.ObjectProperty<EventHandler<WindowEvent>>Window. onCloseRequestProperty()Called when there is an external request to close thisWindow.ObjectProperty<EventHandler<WindowEvent>>Window. onHiddenProperty()Called just after the Window has been hidden.ObjectProperty<EventHandler<WindowEvent>>Window. onHidingProperty()Called just prior to the Window being hidden.ObjectProperty<EventHandler<WindowEvent>>Window. onShowingProperty()Called just prior to the Window being shown.ObjectProperty<EventHandler<WindowEvent>>Window. onShownProperty()Called just after the Window is shown.Method parameters in javafx.stage with type arguments of type WindowEvent Modifier and Type Method Description WindowEventWindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)Creates a copy of the given event with the given fields substituted.voidWindow. setOnCloseRequest(EventHandler<WindowEvent> value)Sets the value of the property onCloseRequest.voidWindow. setOnHidden(EventHandler<WindowEvent> value)Sets the value of the property onHidden.voidWindow. setOnHiding(EventHandler<WindowEvent> value)Sets the value of the property onHiding.voidWindow. setOnShowing(EventHandler<WindowEvent> value)Sets the value of the property onShowing.voidWindow. setOnShown(EventHandler<WindowEvent> value)Sets the value of the property onShown.