org.tanager.ui
Class CUIStateBeginPausing

java.lang.Object
  extended by org.tanager.ui.CUIState
      extended by org.tanager.ui.CUIStateBeginPausing

public class CUIStateBeginPausing
extends CUIState

This class encapsulates the handling of the Tanager UI events while in the BeginPausing state.

Version:
$Revision: 1.2.2.2 $
Author:
Bob Lavey

Field Summary
 
Fields inherited from class org.tanager.ui.CUIState
pauseIcon_, playIcon_
 
Constructor Summary
protected CUIStateBeginPausing()
           This is the only contructor allowed for a CUIStateBeginPausing object.
 
Method Summary
 void doEntryActions()
           This method is used to process the state's entry actions.
 javax.swing.Icon getMiddleButtonIcon()
           This method returns the pause icon while in the BeginPlaying state.
 void pausedSong(CSong song)
           This method handles a pausedSong() event.
 
Methods inherited from class org.tanager.ui.CUIState
debugStateEntry, downButtonPressed, getTheButtonPane, getTheContext, getTheUIController, idle, initialize, leftButtonPressed, middleButtonPressed, playingSong, rightButtonPressed, stopButtonPressed, upButtonPressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CUIStateBeginPausing

protected CUIStateBeginPausing()

This is the only contructor allowed for a CUIStateBeginPausing object.

Method Detail

doEntryActions

public void doEntryActions()

This method is used to process the state's entry actions.

Semantics:
  1. call the UI Controller's pause() method

Overrides:
doEntryActions in class CUIState

getMiddleButtonIcon

public javax.swing.Icon getMiddleButtonIcon()

This method returns the pause icon while in the BeginPlaying state.

Overrides:
getMiddleButtonIcon in class CUIState
Returns:
the pause icon

pausedSong

public void pausedSong(CSong song)

This method handles a pausedSong() event.

Semantics:
  1. transition to the Paused state by instantiating a new CUIStatePaused object and setting the context's state to the new object

Overrides:
pausedSong in class CUIState
Parameters:
song - the playing song