Tesseract  3.02
com.google.scrollview.ui.SVCheckboxMenuItem Class Reference
Inheritance diagram for com.google.scrollview.ui.SVCheckboxMenuItem:
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
boolean bvalue

Package Functions

 SVCheckboxMenuItem (int id, String name, boolean val)

Detailed Description

Constructs a new menulistitem which possesses a flag that can be toggled.

Definition at line 31 of file SVCheckboxMenuItem.java.


Constructor & Destructor Documentation

com.google.scrollview.ui.SVCheckboxMenuItem.SVCheckboxMenuItem ( int  id,
String  name,
boolean  val 
) [inline, package]

Definition at line 36 of file SVCheckboxMenuItem.java.

                                                       {
    super(id, name, new JCheckBoxMenuItem(name, val));
    bvalue = val;
  }

Member Function Documentation

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

Returns the actual value of the MenuListItem.

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

Definition at line 56 of file SVCheckboxMenuItem.java.

                           {
    return Boolean.toString(bvalue);
  }
void com.google.scrollview.ui.SVCheckboxMenuItem.performAction ( SVWindow  window,
SVEventType  eventType 
) [inline]

What to do when user clicks on this item.

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

Definition at line 43 of file SVCheckboxMenuItem.java.

                                                                    {
    // Checkbox entry - trigger and send event.
    if (bvalue) {
      bvalue = false;
    } else {
      bvalue = true;
    }
    SVEvent svme = new SVEvent(eventType, window, id, getValue());
    ScrollView.addMessage(svme);
  }

Member Data Documentation


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