Uses of Class
javafx.stage.WindowEvent
-
Packages that use WindowEvent 软件包 描述 javafx.stage 提供JavaFX内容的顶级容器类。 -
-
Uses of WindowEvent in javafx.stage
Fields in javafx.stage with type parameters of type WindowEvent Modifier and Type Field 描述 static EventType<WindowEvent>
WindowEvent. ANY
所有窗口事件类型的常用超类型。static EventType<WindowEvent>
WindowEvent. WINDOW_CLOSE_REQUEST
当有外部请求关闭该窗口时,此事件将传递到窗口。static EventType<WindowEvent>
WindowEvent. WINDOW_HIDDEN
此事件发生在隐藏后的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_HIDING
此事件发生在隐藏之前的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWING
此事件发生在显示之前的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWN
此事件发生在显示之后的窗口上。Methods in javafx.stage that return WindowEvent Modifier and Type 方法 描述 WindowEvent
WindowEvent. copyFor(Object newSource, EventTarget newTarget)
WindowEvent
WindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
用给定的字段替换给定事件的副本。Methods in javafx.stage that return types with arguments of type WindowEvent Modifier and Type 方法 描述 EventType<WindowEvent>
WindowEvent. getEventType()
EventHandler<WindowEvent>
Window. getOnCloseRequest()
获取属性onCloseRequest的值。EventHandler<WindowEvent>
Window. getOnHidden()
获取属性onHidden的值。EventHandler<WindowEvent>
Window. getOnHiding()
获取属性onHiding的值。EventHandler<WindowEvent>
Window. getOnShowing()
获取属性onShowing的值。EventHandler<WindowEvent>
Window. getOnShown()
获取onShown属性的值。ObjectProperty<EventHandler<WindowEvent>>
Window. onCloseRequestProperty()
当有外部请求关闭此Window
。ObjectProperty<EventHandler<WindowEvent>>
Window. onHiddenProperty()
在窗口被隐藏之后调用。ObjectProperty<EventHandler<WindowEvent>>
Window. onHidingProperty()
在Window被隐藏之前调用。ObjectProperty<EventHandler<WindowEvent>>
Window. onShowingProperty()
在窗口显示之前调用。ObjectProperty<EventHandler<WindowEvent>>
Window. onShownProperty()
在窗口显示之后调用。Method parameters in javafx.stage with type arguments of type WindowEvent Modifier and Type 方法 描述 WindowEvent
WindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
用给定的字段替换给定事件的副本。void
Window. setOnCloseRequest(EventHandler<WindowEvent> value)
设置属性onCloseRequest的值。void
Window. setOnHidden(EventHandler<WindowEvent> value)
设置属性onHidden的值。void
Window. setOnHiding(EventHandler<WindowEvent> value)
设置属性onHiding的值。void
Window. setOnShowing(EventHandler<WindowEvent> value)
设置属性onShowing的值。void
Window. setOnShown(EventHandler<WindowEvent> value)
设置属性onShown的值。
-