Class ParamEventListener
java.lang.Object
ParamEventListener
- 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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParamEventListener
public ParamEventListener(java.lang.Object o)
- Constructor
- Parameters:
o
- object who will take action according to ParamEvent.
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.