|
GTGE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.golden.gamedev.engine.graphics.WindowExitListener
public final class WindowExitListener
WindowExitListener
class is a dummy window listener class that
that forcing Java Virtual Machine to quit by calling
System.exit()
.
This window listener is used by all java.awt.Frame
class in this
graphics engine package.
Method Summary | |
---|---|
static WindowListener |
getInstance()
Returns WindowExitListener singleton instance. |
void |
windowActivated(WindowEvent e)
Do nothing. |
void |
windowClosed(WindowEvent e)
Do nothing. |
void |
windowClosing(WindowEvent e)
Calls System.exit(0) to force Java Virtual Machine to quit
when the close button of the parent object is pressed. |
void |
windowDeactivated(WindowEvent e)
Do nothing. |
void |
windowDeiconified(WindowEvent e)
Do nothing. |
void |
windowIconified(WindowEvent e)
Do nothing. |
void |
windowOpened(WindowEvent e)
Do nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WindowListener getInstance()
WindowExitListener
singleton instance.
public void windowClosing(WindowEvent e)
System.exit(0)
to force Java Virtual Machine to quit
when the close button of the parent object is pressed.
windowClosing
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
|
GTGE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |