Class ParamEventListener

java.lang.Object
  extended byParamEventListener
All Implemented Interfaces:
java.util.EventListener

public class ParamEventListener
extends java.lang.Object
implements java.util.EventListener

Listens to ParamEvent and its source will take action accordingly.

Example: JPanel panel = new JPanel(); AlgorithmParams.getInstance().addListener( new ParamEventListener(panel) );

Author:
Lulin Song
See Also:
MainSelectionPanel

Constructor Summary
ParamEventListener(java.lang.Object o)
          Constructor
 
Method Summary
 void actionPerformed(ParamEvent arg0)
          Turn on/off Action Menu according 'chow-liu' ParamEvent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParamEventListener

public ParamEventListener(java.lang.Object o)
Constructor

Parameters:
o - object who will take action according to ParamEvent.
Method Detail

actionPerformed

public void actionPerformed(ParamEvent arg0)
Turn on/off Action Menu according 'chow-liu' ParamEvent. Turn on/off Action Menu according 'out_file_name' ParamEvent. Switch between different MainSelectinPanel according Model Menu and Action Menu.

Parameters:
arg0 - a ParamEvent fired by AlgorithmParams object.