Tesseract 3.01
com::google::scrollview::ui::SVMenuBar Class Reference

Inherits 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:
scrollViewThe 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:
parentThe 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)
nameThe caption of the new entry.
idThe Id of the new entry. If it is -1, the entry will be treated as a menu.
bWhether 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:
parentThe 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)
nameThe caption of the new entry.
idThe 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines