tesseract
4.00.00dev
|
Public Member Functions | |
void | add (String parent, String name, int id) |
void | add (String parent, String name, int id, String value, String desc) |
void | actionPerformed (ActionEvent e) |
void | show (Component Invoker, int x, int y) |
The SVPopupMenu class provides the functionality to add a popup menu to ScrollView. Each popup menu item gets associated with a (client-defined) command-id, which SVPopupMenu will return upon clicking it.
Definition at line 34 of file SVPopupMenu.java.
|
inline |
A click on one of the items in our menubar has occurred. Forward it to the item itself to let it decide what happens.
Definition at line 129 of file SVPopupMenu.java.
|
inline |
Add a new entry to the menubar. For these items, the server will poll the client to ask what to do.
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. |
Definition at line 64 of file SVPopupMenu.java.
|
inline |
Add a new entry to the menubar. In this case, we also know its value and possibly even have a description. For these items, the server will not poll the client to ask what to do, but just show an input dialog and send a message with the new value.
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. |
value | The value of the new entry. |
desc | The description of the new entry. |
Definition at line 111 of file SVPopupMenu.java.
Gets called by the SVEventHandler of the window to actually show the content of the popup menu.
Definition at line 141 of file SVPopupMenu.java.