RoboJDETM v2.0

com.ridgesoft.ui
Interface MenuController

All Known Implementing Classes:
TwoLineDisplayMenuController

public interface MenuController

Interface to allow MenuItems to interface with an object implementing the MenuController interface.


Method Summary
 void buttonPressed()
          Provides feedback to the user that a button has been pressed.
 int getScrollIndex(int numberOfValues)
          Samples the scroll input and scales the result such that this method returns an index from the specified number of values.
 void printStatus(String string)
          Replaces the text on the status line with the text provided.
 

Method Detail

buttonPressed

void buttonPressed()
Provides feedback to the user that a button has been pressed.


getScrollIndex

int getScrollIndex(int numberOfValues)
Samples the scroll input and scales the result such that this method returns an index from the specified number of values.

Parameters:
numberOfValues - the number values to scale the scroll input into. For example, providing the value 3 would cause this function to return 0, 1, or 2 depending on the position of the scroll input
Returns:
a value based on the scroll input position where 0 <= value < numberOfValues

printStatus

void printStatus(String string)
Replaces the text on the status line with the text provided.

Parameters:
string - String to display on status line

RoboJDETM v2.0

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