net.curre.prefcount.event
Class MainController

java.lang.Object
  extended by net.curre.prefcount.event.MainController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MainController
extends java.lang.Object
implements java.awt.event.ActionListener

This is the main controller for handling event actions.

Created date: Apr 15, 2008

Author:
Yevgeny Nyden

Constructor Summary
MainController(MainWindow mainWindow, PlayerDialogBaseFrame playerDialog)
          Constructs a new MainController object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          
static javax.swing.Action getActionForComponent(WindowComponent compEnum)
          Creates and returns an action object for the given component (represented by a WindowComponent enum).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainController

public MainController(MainWindow mainWindow,
                      PlayerDialogBaseFrame playerDialog)
Constructs a new MainController object.

Parameters:
mainWindow - reference to the main window.
playerDialog - reference to the player dialog frame.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getActionForComponent

public static javax.swing.Action getActionForComponent(WindowComponent compEnum)
Creates and returns an action object for the given component (represented by a WindowComponent enum).

Parameters:
compEnum - component enum for which an action needs to be created.
Returns:
a new action object.


Copyright © 2008. All Rights Reserved.