Class MenuItem


  extended by Object
      extended by Component
          extended by Label
              extended by MenuItem

public class MenuItem
extends Label

This class represents an individual item on a Menu. MenuItem is also used to configure the soft key associations. Soft keys are multi-purpose keys located usually near the screen of the device.

See Also:
Menu, Script.getMenu(Shell, Component), Script.getSoftKey(Shell, Component, int)

Constructor Summary
MenuItem(int id, String text)
          Constructs a new MenuItem.
 
Method Summary
 
Methods inherited from class Component
add, appendText, clear, find, first, get, getAction, getData, getElement, getFlags, getImage, getLocation, getParent, getShell, getSize, getStyle, getText, getViewPort, hasLinefeed, indexOf, insert, isFocusable, isShown, isVisible, isWrapping, last, operator_get, operator_set, remove, remove, repaint, set, setAction, setData, setElement, setFlags, setImage, setLocation, setPreferredHeight, setPreferredSize, setPreferredWidth, setStyle, setText, size
 
Methods inherited from class Object
toString, equals, hashCode
 
Methods inherited from
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuItem

public MenuItem(int id,
                String text)
Constructs a new MenuItem.

Parameters:
id - Action id to associate with this MenuItem. It is passed to Script.actionPerformed(Shell, Component, int) when user selects this menu item.
text - Text to show