public abstract class NativeWindowAdapter extends Object implements NativeWindowListener
Extend this class to create a NativeWindowEvent
listener and
override the methods for the events of interest. (If you implement the
NativeWindowListener
interface, you have to define all of the
methods in it. This abstract class defines null methods for them all, so you
can only have to define methods for events you care about.)
Create a listener object using the extended class and then register it with a
native window using the window's addNativeWindowListener
method.
When the window's status changes by virtue of being opened, closed, activated
or deactivated, iconified or deiconified, the relevant method in the listener
object is invoked, and the NativeWindowEvent
is passed to it.
NativeWindowListener
,
NativeWindowEvent
Constructor and Description |
---|
NativeWindowAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
windowActivated(NativeWindowEvent e)
Invoked when the native window is set to be the active window.
|
void |
windowClosed(NativeWindowEvent e)
Invoked when a native window has been closed as the result of calling
dispose on the window.
|
void |
windowClosing(NativeWindowEvent e)
Invoked when the user attempts to close the native window from the
window's system menu.
|
void |
windowDeactivated(NativeWindowEvent e)
Invoked when a native window is no longer the active window.
|
void |
windowDeiconified(NativeWindowEvent e)
Invoked when a native window is changed from a minimized to a normal
state.
|
void |
windowGainedFocus(NativeWindowEvent e)
Invoked when the native window is set to be the focused window, which
means that the window, or one of its subcomponents, will receive keyboard
events.
|
void |
windowHidden(NativeWindowEvent e)
Invoked when the native window has been made invisible.
|
void |
windowIconified(NativeWindowEvent e)
Invoked when a native window is changed from a normal to a minimized
state.
|
void |
windowLostFocus(NativeWindowEvent e)
Invoked when the native window is no longer the focused window, which
means that keyboard events will no longer be delivered to the window or
any of its subcomponents.
|
void |
windowMoved(NativeWindowEvent e)
Invoked when the native window's position changes.
|
void |
windowOpened(NativeWindowEvent e)
Invoked the first time a native window is made visible.
|
void |
windowResized(NativeWindowEvent e)
Invoked when the native window's size changes.
|
void |
windowShown(NativeWindowEvent e)
Invoked when the native window has been made visible.
|
void |
windowStateChanged(NativeWindowEvent e)
Invoked when the state of the native window has changed.
|
public void windowOpened(NativeWindowEvent e)
windowOpened
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowClosing(NativeWindowEvent e)
windowClosing
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowClosed(NativeWindowEvent e)
windowClosed
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowIconified(NativeWindowEvent e)
windowIconified
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowDeiconified(NativeWindowEvent e)
windowDeiconified
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowActivated(NativeWindowEvent e)
windowActivated
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowDeactivated(NativeWindowEvent e)
windowDeactivated
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowStateChanged(NativeWindowEvent e)
windowStateChanged
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowGainedFocus(NativeWindowEvent e)
windowGainedFocus
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowLostFocus(NativeWindowEvent e)
windowLostFocus
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowResized(NativeWindowEvent e)
windowResized
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowMoved(NativeWindowEvent e)
windowMoved
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowShown(NativeWindowEvent e)
windowShown
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
public void windowHidden(NativeWindowEvent e)
windowHidden
in interface NativeWindowListener
e
- the native window event occurredNativeWindowEvent
Copyright © 2009 - 2016 DataGis. All Rights Reserved.