tetrisEvent.GameOverEvent.GameOverEvent Class Reference

Inheritance diagram for tetrisEvent.GameOverEvent.GameOverEvent:

Inheritance graph
[legend]
Collaboration diagram for tetrisEvent.GameOverEvent.GameOverEvent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GameOverEvent (final Object source)

Static Public Member Functions

static void addGameOverListener (final GameOverListener l)
 The acces funktions for the private static listenerList .
static void removeGameOverListener (final GameOverListener l)
 The acces funktions for the private static listenerList .

Private Member Functions

void fireGameOver ()
 the method to notify all the listeners registered in listenerList

Static Private Attributes

static final long serialVersionUID = 1L
static final EventListenerList listenerList = new EventListenerList()


Detailed Description

Author:
Team Solid Sun

Constructor & Destructor Documentation

tetrisEvent.GameOverEvent.GameOverEvent.GameOverEvent ( final Object  source  ) 

References tetrisEvent.GameOverEvent.GameOverEvent.fireGameOver().

00022                                                   {
00023                 super(source);
00024                 fireGameOver();
00025         }


Member Function Documentation

void tetrisEvent.GameOverEvent.GameOverEvent.fireGameOver (  )  [private]

the method to notify all the listeners registered in listenerList

See also:
listenerList

References tetrisEvent.GameOverEvent.GameOverEvent.listenerList.

Referenced by tetrisEvent.GameOverEvent.GameOverEvent.GameOverEvent().

00031                                     {
00032 
00033                 final Object[] listeners = listenerList.getListenerList();
00034 
00035                 // Process the listeners last to first, notifying
00036                 // those that are interested in this event
00037                 for (int i = listeners.length - 2; i >= 0; i -= 2) {
00038                         //DEBUG   System.out.println(listeners[i + 1]);
00039                         // since there are only DropListeners added a valid operation.
00040                         ((GameOverListener) listeners[i + 1]).gameOver(this);
00041                 }
00042         }

static void tetrisEvent.GameOverEvent.GameOverEvent.addGameOverListener ( final GameOverListener  l  )  [static]

The acces funktions for the private static listenerList .

This in particular adds the given listener to list.

Parameters:
l The listener that shall be added.
See also:
listenerList

References tetrisEvent.GameOverEvent.GameOverEvent.listenerList.

00052                                                                          {
00053                 listenerList.add(GameOverListener.class, l);
00054         }

static void tetrisEvent.GameOverEvent.GameOverEvent.removeGameOverListener ( final GameOverListener  l  )  [static]

The acces funktions for the private static listenerList .

This in particular removes the given listener from the list.

Parameters:
l The listener that shall be removed.
See also:
listenerList

References tetrisEvent.GameOverEvent.GameOverEvent.listenerList.

00062                                                                             {
00063                 listenerList.remove(GameOverListener.class, l);
00064         }


Member Data Documentation

final EventListenerList tetrisEvent.GameOverEvent.GameOverEvent.listenerList = new EventListenerList() [static, private]


The documentation for this class was generated from the following file:

Generated on Mon Jul 28 19:03:09 2008 for SolidJavaTetris by  doxygen 1.5.5