org.tanager.ui
Class CUIStateInMenus

java.lang.Object
  extended by org.tanager.ui.CUIMenuModeState
      extended by org.tanager.ui.CUIStateInMenus

public class CUIStateInMenus
extends CUIMenuModeState

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

Version:
$Revision: 1.2.2.1 $
Author:
Bob Lavey

Field Summary
 
Fields inherited from class org.tanager.ui.CUIMenuModeState
selectIcon_
 
Constructor Summary
protected CUIStateInMenus()
           This is the only contructor allowed for a CUIStateInMenus object.
 
Method Summary
 void exitMenus()
           This method is used to process the exitMenus() event.
 javax.swing.Icon getMiddleButtonIcon()
           This method returns the select icon while in the InMenus state.
 boolean isInMenus()
           This method returns whether or not the menus are being displayed.
 void menuButtonPressed()
           This method is used to process the menuButtonPressed() event.
 
Methods inherited from class org.tanager.ui.CUIMenuModeState
debugStateEntry, displayMenu, doEntryActions, downButtonPressed, getTheButtonPane, getTheContext, getTheUIController, leftButtonPressed, middleButtonPressed, rightButtonPressed, upButtonPressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CUIStateInMenus

protected CUIStateInMenus()

This is the only contructor allowed for a CUIStateInMenus object.

Method Detail

getMiddleButtonIcon

public javax.swing.Icon getMiddleButtonIcon()

This method returns the select icon while in the InMenus state.

Overrides:
getMiddleButtonIcon in class CUIMenuModeState
Returns:
the select icon

isInMenus

public boolean isInMenus()

This method returns whether or not the menus are being displayed.

Overrides:
isInMenus in class CUIMenuModeState
Returns:
true always from the InMenus state

menuButtonPressed

public void menuButtonPressed()

This method is used to process the menuButtonPressed() event.

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

Overrides:
menuButtonPressed in class CUIMenuModeState

exitMenus

public void exitMenus()

This method is used to process the exitMenus() event.

Semantics:
  1. transition to the NotInMenus state by instantiating a new CUIStateNotInMenus object and setting the context's menu mode state to the new object

Overrides:
exitMenus in class CUIMenuModeState