Tesseract  3.02
com.google.scrollview.ui.SVAbstractMenuItem Class Reference
Inheritance diagram for com.google.scrollview.ui.SVAbstractMenuItem:
com.google.scrollview.ui.SVCheckboxMenuItem com.google.scrollview.ui.SVEmptyMenuItem com.google.scrollview.ui.SVMenuItem com.google.scrollview.ui.SVSubMenuItem

List of all members.

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

Detailed Description

Definition at line 27 of file SVAbstractMenuItem.java.


Constructor & Destructor Documentation

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

Definition at line 35 of file SVAbstractMenuItem.java.

                                                         {
    this.mi = jmi;
    this.name = name;
    this.id = id;
  }

Member Function Documentation

void com.google.scrollview.ui.SVAbstractMenuItem.add ( SVAbstractMenuItem  mli) [inline]

Adds a child entry to the submenu.

Reimplemented in com.google.scrollview.ui.SVSubMenuItem.

Definition at line 45 of file SVAbstractMenuItem.java.

{ }
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.

Definition at line 48 of file SVAbstractMenuItem.java.

{ }
String com.google.scrollview.ui.SVAbstractMenuItem.getValue ( ) [inline]

Returns the actual value of the MenuListItem.

Reimplemented in com.google.scrollview.ui.SVMenuItem, and com.google.scrollview.ui.SVCheckboxMenuItem.

Definition at line 42 of file SVAbstractMenuItem.java.

{ return null; }
void com.google.scrollview.ui.SVAbstractMenuItem.performAction ( SVWindow  window,
SVEventType  eventType 
) [inline]

What to do when user clicks on this item.

Parameters:
windowThe window the event happened.
eventTypeWhat kind of event will be associated (usually SVET_POPUP or SVET_MENU).

Reimplemented in com.google.scrollview.ui.SVMenuItem, com.google.scrollview.ui.SVCheckboxMenuItem, and com.google.scrollview.ui.SVEmptyMenuItem.

Definition at line 56 of file SVAbstractMenuItem.java.

{}

Member Data Documentation

Definition at line 28 of file SVAbstractMenuItem.java.


The documentation for this class was generated from the following file: