com::google::scrollview::ui::SVMenuBar Class Reference
Inherits java::awt::event::ActionListener.
List of all members.
Public Member Functions |
| SVMenuBar (SVWindow scrollView) |
void | actionPerformed (ActionEvent e) |
void | add (String parent, String name, int id) |
void | add (String parent, String name, int id, boolean b) |
Detailed Description
The SVMenuBar class provides the functionality to add a menubar to ScrollView. Each menubar item gets associated with a (client-defined) command-id, which SVMenuBar will return upon clicking it.
- Author:
- wanke@google.com
Constructor & Destructor Documentation
com::google::scrollview::ui::SVMenuBar::SVMenuBar |
( |
SVWindow |
scrollView |
) |
[inline] |
Create a new SVMenuBar and place it at the top of the ScrollView window.
- Parameters:
-
| scrollView | The window our menubar belongs to. |
Member Function Documentation
void com::google::scrollview::ui::SVMenuBar::actionPerformed |
( |
ActionEvent |
e |
) |
[inline] |
A click on one of the items in our menubar has occured. Forward it to the item itself to let it decide what happens.
void com::google::scrollview::ui::SVMenuBar::add |
( |
String |
parent, |
|
|
String |
name, |
|
|
int |
id, |
|
|
boolean |
b | |
|
) |
| | [inline] |
Add a new checkbox entry to the menubar.
- Parameters:
-
| parent | The menu we add our new entry to (should have been defined before). If the parent is "", we will add the entry to the root (top-level) |
| name | The caption of the new entry. |
| id | The Id of the new entry. If it is -1, the entry will be treated as a menu. |
| b | Whether the entry is initally flagged. |
void com::google::scrollview::ui::SVMenuBar::add |
( |
String |
parent, |
|
|
String |
name, |
|
|
int |
id | |
|
) |
| | [inline] |
Add a new entry to the menubar.
- Parameters:
-
| parent | The menu we add our new entry to (should have been defined before). If the parent is "", we will add the entry to the root (top-level) |
| name | The caption of the new entry. |
| id | The Id of the new entry. If it is -1, the entry will be treated as a menu. |
The documentation for this class was generated from the following file: