GTGE API

com.golden.gamedev.engine.graphics
Class WindowExitListener

java.lang.Object
  extended by com.golden.gamedev.engine.graphics.WindowExitListener
All Implemented Interfaces:
WindowListener, EventListener

public final class WindowExitListener
extends Object
implements WindowListener

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

getInstance

public static WindowListener getInstance()
Returns WindowExitListener singleton instance.


windowClosing

public 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.

Specified by:
windowClosing in interface WindowListener

windowOpened

public void windowOpened(WindowEvent e)
Do nothing.

Specified by:
windowOpened in interface WindowListener

windowClosed

public void windowClosed(WindowEvent e)
Do nothing.

Specified by:
windowClosed in interface WindowListener

windowIconified

public void windowIconified(WindowEvent e)
Do nothing.

Specified by:
windowIconified in interface WindowListener

windowDeiconified

public void windowDeiconified(WindowEvent e)
Do nothing.

Specified by:
windowDeiconified in interface WindowListener

windowActivated

public void windowActivated(WindowEvent e)
Do nothing.

Specified by:
windowActivated in interface WindowListener

windowDeactivated

public void windowDeactivated(WindowEvent e)
Do nothing.

Specified by:
windowDeactivated in interface WindowListener

GTGE API

Copyright © 2003-2005 Golden T Studios. All rights reserved. Use is subject to license terms.
GoldenStudios.or.id