

| Public Member Functions | |
| StateEvent (final Object source, int s) | |
| int | getState () | 
| Static Public Member Functions | |
| static void | addGameOverListener (final StateListener l) | 
| The acces funktions for the private static listenerList . | |
| static void | removeGameOverListener (final StateListener l) | 
| The acces funktions for the private static listenerList . | |
| Static Public Attributes | |
| static final int | PAUSE = 10 | 
| static final int | START = 11 | 
| static final int | STOP = 12 | 
| Private Member Functions | |
| void | fireGameOver () | 
| the method to notify all the listeners registered in listenerList | |
| Private Attributes | |
| int | state | 
| Static Private Attributes | |
| static final long | serialVersionUID = 1L | 
| static final EventListenerList | listenerList = new EventListenerList() | 
| tetrisEvent.stateEvent.StateEvent.StateEvent | ( | final Object | source, | |
| int | s | |||
| ) | 
References tetrisEvent.stateEvent.StateEvent.fireGameOver(), and tetrisEvent.stateEvent.StateEvent.state.
00025 { 00026 super(source); 00027 state = s; 00028 fireGameOver(); 00029 }
| void tetrisEvent.stateEvent.StateEvent.fireGameOver | ( | ) |  [private] | 
the method to notify all the listeners registered in listenerList 
References tetrisEvent.stateEvent.StateEvent.listenerList.
Referenced by tetrisEvent.stateEvent.StateEvent.StateEvent().
00035 { 00036 00037 final Object[] listeners = listenerList.getListenerList(); 00038 00039 // Process the listeners last to first, notifying 00040 // those that are interested in this event 00041 for (int i = listeners.length - 2; i >= 0; i -= 2) { 00042 // since there are only StateListeners added a valid operation. 00043 ((StateListener) listeners[i + 1]).gameOver(this); 00044 } 00045 }
| static void tetrisEvent.stateEvent.StateEvent.addGameOverListener | ( | final StateListener | l | ) |  [static] | 
The acces funktions for the private static listenerList . 
This in particular adds the given listener to list.
| l | The listener that shall be added. | 
References tetrisEvent.stateEvent.StateEvent.listenerList.
00055 { 00056 listenerList.add(StateListener.class, l); 00057 }
| static void tetrisEvent.stateEvent.StateEvent.removeGameOverListener | ( | final StateListener | l | ) |  [static] | 
The acces funktions for the private static listenerList . 
This in particular removes the given listener from the list.
| l | The listener that shall be removed. | 
References tetrisEvent.stateEvent.StateEvent.listenerList.
00065 { 00066 listenerList.remove(StateListener.class, l); 00067 }
| int tetrisEvent.stateEvent.StateEvent.getState | ( | ) | 
| final long tetrisEvent.stateEvent.StateEvent.serialVersionUID = 1L  [static, private] | 
| final EventListenerList tetrisEvent.stateEvent.StateEvent.listenerList = new EventListenerList()  [static, private] | 
| final int tetrisEvent.stateEvent.StateEvent.PAUSE = 10  [static] | 
| final int tetrisEvent.stateEvent.StateEvent.START = 11  [static] | 
| final int tetrisEvent.stateEvent.StateEvent.STOP = 12  [static] | 
| int tetrisEvent.stateEvent.StateEvent.state  [private] | 
 1.5.5
 1.5.5