Public Member Functions | |
String | getValue () |
void | add (SVAbstractMenuItem mli) |
void | add (JMenu jli) |
void | performAction (SVWindow window, SVEventType eventType) |
Public Attributes | |
String | name |
int | id |
Package Functions | |
SVAbstractMenuItem (int id, String name, JMenuItem jmi) | |
Package Attributes | |
JMenuItem | mi |
com::google::scrollview::ui::SVAbstractMenuItem::SVAbstractMenuItem | ( | int | id, | |
String | name, | |||
JMenuItem | jmi | |||
) | [inline, package] |
Sets the basic attributes for name, id and the corresponding swing item
void com::google::scrollview::ui::SVAbstractMenuItem::add | ( | JMenu | jli | ) | [inline] |
Adds a child menu to the submenu (or root node).
Reimplemented in com::google::scrollview::ui::SVSubMenuItem.
void com::google::scrollview::ui::SVAbstractMenuItem::add | ( | SVAbstractMenuItem | mli | ) | [inline] |
Adds a child entry to the submenu.
Reimplemented in com::google::scrollview::ui::SVSubMenuItem.
String com::google::scrollview::ui::SVAbstractMenuItem::getValue | ( | ) | [inline] |
Returns the actual value of the MenuListItem.
Reimplemented in com::google::scrollview::ui::SVCheckboxMenuItem, and com::google::scrollview::ui::SVMenuItem.
void com::google::scrollview::ui::SVAbstractMenuItem::performAction | ( | SVWindow | window, | |
SVEventType | eventType | |||
) | [inline] |
What to do when user clicks on this item.
window | The window the event happened. | |
eventType | What kind of event will be associated (usually SVET_POPUP or SVET_MENU). |
Reimplemented in com::google::scrollview::ui::SVCheckboxMenuItem, com::google::scrollview::ui::SVEmptyMenuItem, and com::google::scrollview::ui::SVMenuItem.
JMenuItem com::google::scrollview::ui::SVAbstractMenuItem::mi [package] |