com::google::scrollview::ui::SVPopupMenu Class Reference

Inherits java::awt::event::ActionListener.

List of all members.

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)

Package Functions

 SVPopupMenu (SVWindow sv)

Detailed Description

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.

Author:
wanke@google.com

Constructor & Destructor Documentation

com::google::scrollview::ui::SVPopupMenu::SVPopupMenu ( SVWindow  sv  )  [inline, package]

Create a new SVPopupMenu and associate it with a ScrollView window.

Parameters:
sv The window our popup menu belongs to.

Member Function Documentation

void com::google::scrollview::ui::SVPopupMenu::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::SVPopupMenu::add ( String  parent,
String  name,
int  id,
String  value,
String  desc 
) [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.

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.
void com::google::scrollview::ui::SVPopupMenu::add ( String  parent,
String  name,
int  id 
) [inline]

Add a new entry to the menubar. For these items, the server will poll the client to ask what to do.

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.
void com::google::scrollview::ui::SVPopupMenu::show ( Component  Invoker,
int  x,
int  y 
) [inline]

Gets called by the SVEventHandler of the window to actually show the content of the popup menu.


The documentation for this class was generated from the following file:
Generated on Sun Jul 18 17:11:19 2010 for Tesseract by  doxygen 1.6.3