public class WindowFollowAdapter
extends java.awt.event.ComponentAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
protected java.awt.Window |
followingWindow |
protected java.awt.Point |
lastLocation |
protected java.awt.Window |
parentWindow |
| Constructor and Description |
|---|
WindowFollowAdapter(java.awt.Window followingWindow,
java.awt.Window parentWindow) |
| Modifier and Type | Method and Description |
|---|---|
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
java.awt.Window |
getFollowingWindow() |
java.awt.Window |
getParentWindow() |
static WindowFollowAdapter |
install(java.awt.Window followingWindow,
java.awt.Window parentWindow) |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
static void |
uninstall(java.awt.Window parentWindow,
WindowFollowAdapter windowFollowAdapter) |
void |
updateLastLocation() |
protected final java.awt.Window followingWindow
protected final java.awt.Window parentWindow
protected boolean enabled
protected java.awt.Point lastLocation
public WindowFollowAdapter(java.awt.Window followingWindow,
java.awt.Window parentWindow)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void updateLastLocation()
public java.awt.Window getFollowingWindow()
public java.awt.Window getParentWindow()
public void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenercomponentResized in class java.awt.event.ComponentAdapterpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenercomponentMoved in class java.awt.event.ComponentAdapterpublic static WindowFollowAdapter install(java.awt.Window followingWindow, java.awt.Window parentWindow)
public static void uninstall(java.awt.Window parentWindow,
WindowFollowAdapter windowFollowAdapter)