org.tanager.ui
Class CUIStateNotInMenus

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

public class CUIStateNotInMenus
extends CUIMenuModeState

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

Version:
$Revision: 1.2.2.1 $
Author:
Bob Lavey

Field Summary
 
Fields inherited from class org.tanager.ui.CUIMenuModeState
selectIcon_
 
Constructor Summary
protected CUIStateNotInMenus()
           This is the default constructor for CUIStateNotInMenus objects.
  CUIStateNotInMenus(CUIStateContext context)
           This is the CUIStateNotInMenus contructor that must be used when first initializing the object.
 
Method Summary
 void displayMenu(CMenu menu)
           This method is used to process the displayMenu() event.
 void menuButtonPressed()
           This method is used to process the menuButtonPressed() event.
 
Methods inherited from class org.tanager.ui.CUIMenuModeState
debugStateEntry, doEntryActions, downButtonPressed, exitMenus, getMiddleButtonIcon, getTheButtonPane, getTheContext, getTheUIController, isInMenus, leftButtonPressed, middleButtonPressed, rightButtonPressed, upButtonPressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CUIStateNotInMenus

protected CUIStateNotInMenus()

This is the default constructor for CUIStateNotInMenus objects.


CUIStateNotInMenus

public CUIStateNotInMenus(CUIStateContext context)

This is the CUIStateNotInMenus contructor that must be used when first initializing the object.

Semantics:
  1. initialize the State Context association with the given context

Parameters:
context - a reference to the parent CUIStateContext object
Method Detail

menuButtonPressed

public void menuButtonPressed()

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

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

Overrides:
menuButtonPressed in class CUIMenuModeState

displayMenu

public void displayMenu(CMenu menu)

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

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

Overrides:
displayMenu in class CUIMenuModeState
Parameters:
menu -