RoboJDETM v2.0

com.ridgesoft.ui
Class MenuItemList

java.lang.Object
  extended by com.ridgesoft.ui.MenuItemList
All Implemented Interfaces:
MenuItem
Direct Known Subclasses:
BasicMenuItemList

public abstract class MenuItemList
extends Object
implements MenuItem

Abstract class for a named list of menu items.


Constructor Summary
MenuItemList(String title)
          Constructs a MenuItemList.
 
Method Summary
abstract  void freeMenuItems()
          Allows menu items to be freed if they aren't being used by the display system.
abstract  MenuItem[] getMenuItems()
          Gets the list of menu items in this list.
 void select(PushButton selectButton, PushButton exitButton, MenuController menuController)
          Called when the user selects this menu item if it is not a MenuItemList.
 String toString()
          Returns the title of the menu item.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Constructor Detail

MenuItemList

public MenuItemList(String title)
Constructs a MenuItemList.

Parameters:
title - name of the list
Method Detail

freeMenuItems

public abstract void freeMenuItems()
Allows menu items to be freed if they aren't being used by the display system. Subclasses are not required to free menu items, but it saves memory if they do.


getMenuItems

public abstract MenuItem[] getMenuItems()
Gets the list of menu items in this list.

Returns:
array of MenuItems

select

public void select(PushButton selectButton,
                   PushButton exitButton,
                   MenuController menuController)
Called when the user selects this menu item if it is not a MenuItemList.

This method should never be called on this class.

This implementation does nothing.

Specified by:
select in interface MenuItem
Parameters:
selectButton - button for selecting items
exitButton - button for exiting the menu
menuController - menu system controller

toString

public String toString()
Returns the title of the menu item.

Overrides:
toString in class Object
Returns:
title of menu item

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com