|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.libraries.general.AbstractExit
| Field Summary | |
static javax.swing.AbstractAction |
listener
Use only one exit listener for the whole program. |
static java.awt.event.WindowListener |
windowListener
Use only one windows event listener. |
| Constructor Summary | |
protected |
AbstractExit()
|
| Method Summary | |
protected abstract void |
apply()
The cleanup callback. |
static void |
cleanup()
Clean up the program and exit. |
static void |
direct()
Direct exit, no cleanup. |
static void |
error(int value)
Error exit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static javax.swing.AbstractAction listener
public static java.awt.event.WindowListener windowListener
| Constructor Detail |
protected AbstractExit()
| Method Detail |
public static void cleanup()
public static void direct()
public static void error(int value)
value - error on exit.protected abstract void apply()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||