soc.client
Class SOCPlayerClient.MyWindowAdapter
java.lang.Object
java.awt.event.WindowAdapter
soc.client.SOCPlayerClient.MyWindowAdapter
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener
- Enclosing class:
- SOCPlayerClient
- private static class SOCPlayerClient.MyWindowAdapter
- extends java.awt.event.WindowAdapter
React to windowOpened, windowClosing events for SOCPlayerClient's Frame.
|
Method Summary |
void |
windowClosing(java.awt.event.WindowEvent evt)
User has clicked window Close button. |
void |
windowOpened(java.awt.event.WindowEvent evt)
Set focus to Nickname field |
| Methods inherited from class java.awt.event.WindowAdapter |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowStateChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cli
private final SOCPlayerClient cli
SOCPlayerClient.MyWindowAdapter
public SOCPlayerClient.MyWindowAdapter(SOCPlayerClient c)
windowClosing
public void windowClosing(java.awt.event.WindowEvent evt)
- User has clicked window Close button.
Check for active games, before exiting.
If we are playing in a game, or running a local server hosting active games,
ask the user to confirm if possible.
windowOpened
public void windowOpened(java.awt.event.WindowEvent evt)
- Set focus to Nickname field