A low-level event that indicates that a window has changed its status. This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window.
The event is passed to every WindowListener or WindowAdapter object which registered to receive such events using the window's addWindowListener method. (WindowAdapter objects implement the WindowListener interface.) Each such listener object gets this WindowEvent when the event occurs.
An unspecified behavior will be caused if the id parameter of any particular WindowEvent instance is not in the range from WINDOW_FIRST to WINDOW_LAST.
A low-level event that indicates that a window has changed its status. This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window. The event is passed to every WindowListener or WindowAdapter object which registered to receive such events using the window's addWindowListener method. (WindowAdapter objects implement the WindowListener interface.) Each such listener object gets this WindowEvent when the event occurs. An unspecified behavior will be caused if the id parameter of any particular WindowEvent instance is not in the range from WINDOW_FIRST to WINDOW_LAST.
Static Constant.
The window-activated event type. This event is delivered when the Window becomes the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.
type: int
Static Constant. The window-activated event type. This event is delivered when the Window becomes the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window. type: int
Static Constant.
The window closed event. This event is delivered after the displayable window has been closed as the result of a call to dispose.
type: int
Static Constant. The window closed event. This event is delivered after the displayable window has been closed as the result of a call to dispose. type: int
Static Constant.
The "window is closing" event. This event is delivered when the user attempts to close the window from the window's system menu. If the program does not explicitly hide or dispose the window while processing this event, the window close operation will be cancelled.
type: int
Static Constant. The "window is closing" event. This event is delivered when the user attempts to close the window from the window's system menu. If the program does not explicitly hide or dispose the window while processing this event, the window close operation will be cancelled. type: int
Static Constant.
The window-deactivated event type. This event is delivered when the Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.
type: int
Static Constant. The window-deactivated event type. This event is delivered when the Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window. type: int
Static Constant.
The window deiconified event type. This event is delivered when the window has been changed from a minimized to a normal state.
type: int
Static Constant. The window deiconified event type. This event is delivered when the window has been changed from a minimized to a normal state. type: int
Static Constant.
The first number in the range of ids used for window events.
type: int
Static Constant. The first number in the range of ids used for window events. type: int
Static Constant.
The window-gained-focus event type. This event is delivered when the Window becomes the focused Window, which means that the Window, or one of its subcomponents, will receive keyboard events.
type: int
Static Constant. The window-gained-focus event type. This event is delivered when the Window becomes the focused Window, which means that the Window, or one of its subcomponents, will receive keyboard events. type: int
Static Constant.
The window iconified event. This event is delivered when the window has been changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.
type: int
Static Constant. The window iconified event. This event is delivered when the window has been changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property. type: int
Static Constant.
The last number in the range of ids used for window events.
type: int
Static Constant. The last number in the range of ids used for window events. type: int
Static Constant.
The window-lost-focus event type. This event is delivered when a Window is no longer the focused Window, which means keyboard events will no longer be delivered to the Window or any of its subcomponents.
type: int
Static Constant. The window-lost-focus event type. This event is delivered when a Window is no longer the focused Window, which means keyboard events will no longer be delivered to the Window or any of its subcomponents. type: int
Static Constant.
The window opened event. This event is delivered only the first time a window is made visible.
type: int
Static Constant. The window opened event. This event is delivered only the first time a window is made visible. type: int
Static Constant.
The window-state-changed event type. This event is delivered when a Window's state is changed by virtue of it being iconified, maximized etc.
type: int
Static Constant. The window-state-changed event type. This event is delivered when a Window's state is changed by virtue of it being iconified, maximized etc. type: int
(->window-event source id)
(->window-event source id opposite)
(->window-event source id old-state new-state)
(->window-event source id opposite old-state new-state)
Constructor.
Constructs a WindowEvent object. This method throws an IllegalArgumentException if source is null.
source - The Window object that originated the event - java.awt.Window
id - An integer indicating the type of event. For information on allowable values, see the class description for WindowEvent - int
opposite - The other window involved in the focus or activation change, or null - java.awt.Window
old-state - Previous state of the window for window state change event. See #getOldState() for allowable values - int
new-state - New state of the window for window state change event. See #getNewState() for allowable values - int
throws: java.lang.IllegalArgumentException - if source is null
Constructor. Constructs a WindowEvent object. This method throws an IllegalArgumentException if source is null. source - The Window object that originated the event - `java.awt.Window` id - An integer indicating the type of event. For information on allowable values, see the class description for WindowEvent - `int` opposite - The other window involved in the focus or activation change, or null - `java.awt.Window` old-state - Previous state of the window for window state change event. See #getOldState() for allowable values - `int` new-state - New state of the window for window state change event. See #getNewState() for allowable values - `int` throws: java.lang.IllegalArgumentException - if source is null
(get-new-state this)
For WINDOW_STATE_CHANGED events returns the new state of the window. The state is represented as a bitwise mask.
NORMAL Indicates that no state bits are set. ICONIFIED MAXIMIZED_HORIZ MAXIMIZED_VERT MAXIMIZED_BOTH Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT.
returns: a bitwise mask of the new window state - int
For WINDOW_STATE_CHANGED events returns the new state of the window. The state is represented as a bitwise mask. NORMAL Indicates that no state bits are set. ICONIFIED MAXIMIZED_HORIZ MAXIMIZED_VERT MAXIMIZED_BOTH Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT. returns: a bitwise mask of the new window state - `int`
(get-old-state this)
For WINDOW_STATE_CHANGED events returns the previous state of the window. The state is represented as a bitwise mask.
NORMAL Indicates that no state bits are set. ICONIFIED MAXIMIZED_HORIZ MAXIMIZED_VERT MAXIMIZED_BOTH Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT.
returns: a bitwise mask of the previous window state - int
For WINDOW_STATE_CHANGED events returns the previous state of the window. The state is represented as a bitwise mask. NORMAL Indicates that no state bits are set. ICONIFIED MAXIMIZED_HORIZ MAXIMIZED_VERT MAXIMIZED_BOTH Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT. returns: a bitwise mask of the previous window state - `int`
(get-opposite-window this)
Returns the other Window involved in this focus or activation change. For a WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this is the Window that lost activation or focus. For a WINDOW_DEACTIVATED or WINDOW_LOST_FOCUS event, this is the Window that gained activation or focus. For any other type of WindowEvent, or if the focus or activation change occurs with a native application, with a Java application in a different VM or context, or with no other Window, null is returned.
returns: the other Window involved in the focus or activation change, or
null - java.awt.Window
Returns the other Window involved in this focus or activation change. For a WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this is the Window that lost activation or focus. For a WINDOW_DEACTIVATED or WINDOW_LOST_FOCUS event, this is the Window that gained activation or focus. For any other type of WindowEvent, or if the focus or activation change occurs with a native application, with a Java application in a different VM or context, or with no other Window, null is returned. returns: the other Window involved in the focus or activation change, or null - `java.awt.Window`
(get-window this)
Returns the originator of the event.
returns: the Window object that originated the event - java.awt.Window
Returns the originator of the event. returns: the Window object that originated the event - `java.awt.Window`
(param-string this)
Returns a parameter string identifying this event. This method is useful for event-logging and for debugging.
returns: a string identifying the event and its attributes - java.lang.String
Returns a parameter string identifying this event. This method is useful for event-logging and for debugging. returns: a string identifying the event and its attributes - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close