bin
Class GUIFramework.RadioButtonListener

java.lang.Object
  extended by bin.GUIFramework.RadioButtonListener
All Implemented Interfaces:
java.awt.event.ItemListener, java.util.EventListener
Enclosing class:
GUIFramework

protected class GUIFramework.RadioButtonListener
extends java.lang.Object
implements java.awt.event.ItemListener

This inner-class listens to all radio-buttons. When the user selects different options, make sure to update accordingly.


Constructor Summary
protected GUIFramework.RadioButtonListener()
           
 
Method Summary
 void calculateGameMode()
          This method determines what features should be made available when switching between game types (JK or MotS).
 void itemStateChanged(java.awt.event.ItemEvent event)
          Item events are handled by the "itemStateChanged()" method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIFramework.RadioButtonListener

protected GUIFramework.RadioButtonListener()
Method Detail

calculateGameMode

public void calculateGameMode()
This method determines what features should be made available when switching between game types (JK or MotS). Useful if the editor has made a choice and then changes their mind; this keeps track of the information change-over.


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent event)
Item events are handled by the "itemStateChanged()" method.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
event - The ItemEvent object responsible for the event.