|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Component
Label
MenuItem
public class MenuItem
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.
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 |
|---|
public MenuItem(int id,
String text)
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||