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

List of all members.

Public Member Functions

void performAction (SVWindow window, SVEventType eventType)
String getValue ()

Public Attributes

String value = null
String desc = null

Package Functions

 SVMenuItem (int id, String name, String v, String d)

Detailed Description

Constructs a new menulistitem which also has a value and a description. For these, we will not have to ask the server what the value is when the user wants to change it, but can just call the client with the new value.

Definition at line 31 of file SVMenuItem.java.


Constructor & Destructor Documentation

com.google.scrollview.ui.SVMenuItem.SVMenuItem ( int  id,
String  name,
String  v,
String  d 
) [inline, package]

Definition at line 35 of file SVMenuItem.java.

                                                      {
    super(id, name, new JMenuItem(name));
    value = v;
    desc = d;
  }

Member Function Documentation

String com.google.scrollview.ui.SVMenuItem.getValue ( ) [inline]

Returns the actual value of the MenuListItem.

Reimplemented from com.google.scrollview.ui.SVAbstractMenuItem.

Definition at line 57 of file SVMenuItem.java.

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

Ask the user for new input for a variable and send it. Depending on whether there is a description given for the entry, show the description in the dialog or just show the name.

Reimplemented from com.google.scrollview.ui.SVAbstractMenuItem.

Definition at line 47 of file SVMenuItem.java.

                                                                    {
    if (desc != null) {
      window.showInputDialog(desc, value, id, eventType);
    } else {
      window.showInputDialog(name, value, id, eventType);
    }
  }

Member Data Documentation

Definition at line 33 of file SVMenuItem.java.

Definition at line 32 of file SVMenuItem.java.


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