public abstract class WindowAdapter extends Object implements WindowListener
Extend this class to create a WindowEvent listener and
override the methods for the events of interest. (If you implement the
WindowListener interface, you have to define all of the methods
in it. This abstract class defines null methods for them all, so
you only have to define methods for events you care about.)
Create a listener object using the extended class and then register it
with a browser using the browser's addWindowListener method.
When a browser event occurs, the relevant method in the listener object is
invoked and the WindowEvent is passed to it.
| Constructor and Description |
|---|
WindowAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onNewWindow(WindowEvent e)
Invoked when a new window is requested.
|
void |
onWindowDestroy(WindowEvent e)
Invoked when a window destroyed.
|
void |
onWindowResize(WindowEvent e)
Invoked when a window resized.
|
public void onNewWindow(WindowEvent e)
WindowListeneronNewWindow in interface WindowListenerpublic void onWindowDestroy(WindowEvent e)
WindowListeneronWindowDestroy in interface WindowListenerpublic void onWindowResize(WindowEvent e)
WindowListeneronWindowResize in interface WindowListener