net.curre.prefcount.event
Class DialogButtonNavigationListener

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.curre.prefcount.event.DialogButtonNavigationListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.KeyListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class DialogButtonNavigationListener
extends javax.swing.AbstractAction
implements java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.FocusListener

Object of this class represents a listener that extends AbstractAction class, implements the ActionListener, KeyListener, and FocusListener interfaces to be used as a listener with the player navigational buttons.

Created date: Jun 7, 2007

Author:
Yevgeny Nyden
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
DialogButtonNavigationListener(boolean nextButton, PlayerDialogBasePanel basePanel)
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          Performs the button action.
 void focusGained(java.awt.event.FocusEvent focusEvent)
          Does nothing.
 void focusLost(java.awt.event.FocusEvent focusEvent)
          Transfers focus from this button to the next appropriate component.
 void keyPressed(java.awt.event.KeyEvent keyEvent)
          Does nothing.
 void keyReleased(java.awt.event.KeyEvent keyEvent)
          Performs the button action.
 void keyTyped(java.awt.event.KeyEvent keyEvent)
          Does nothing.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogButtonNavigationListener

public DialogButtonNavigationListener(boolean nextButton,
                                      PlayerDialogBasePanel basePanel)
Constructor.

Parameters:
nextButton - If true, represents the next button; if false - back button.
basePanel - Reference to the main player dialog panel.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Performs the button action.

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

keyTyped

public void keyTyped(java.awt.event.KeyEvent keyEvent)
Does nothing.

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent keyEvent)
Does nothing.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent keyEvent)
Performs the button action.

Specified by:
keyReleased in interface java.awt.event.KeyListener

focusGained

public void focusGained(java.awt.event.FocusEvent focusEvent)
Does nothing.

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent focusEvent)
Transfers focus from this button to the next appropriate component.

Specified by:
focusLost in interface java.awt.event.FocusListener


Copyright © 2008. All Rights Reserved.