Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QContextMenuEvent.Reason

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.gui.QContextMenuEvent.Reason

All Implemented Interfaces:
  QtEnumerator, java.io.Serializable, java.lang.Comparable

Enclosing class:
  QContextMenuEvent

    public static final class QContextMenuEvent.Reason

extends java.lang.Enum
implements QtEnumerator

This enum describes the reason why the context event was sent.

See Also:
  Serialized Form

Field Summary
`static QContextMenuEvent.Reason` | `Keyboard` The keyboard caused this event to be sent.
`static QContextMenuEvent.Reason` | `Mouse` The mouse caused the event to be sent.
`static QContextMenuEvent.Reason` | `Other` The event was sent by some other means (i.e.

Method Summary
`static QContextMenuEvent.Reason` | `resolve(int value)` Returns the Reason constant with the specified `int`.
`int` | `value()` This function should return an integer value for the enum values of the enumeration that implements this interface.
`static QContextMenuEvent.Reason` | `valueOf(java.lang.String name)`
`static QContextMenuEvent.Reason[]` | `values()`

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### Mouse

    public static final QContextMenuEvent.Reason Mouse

  The mouse caused the event to be sent. On most platforms, this means the right mouse button was clicked.

### Keyboard

    public static final QContextMenuEvent.Reason Keyboard

  The keyboard caused this event to be sent. On Windows and Mac OS X, this means the menu button was pressed.

### Other

    public static final QContextMenuEvent.Reason Other

  The event was sent by some other means (i.e. not by the mouse or keyboard).

Method Detail

### values

    public static QContextMenuEvent.Reason[] values()

### valueOf

    public static QContextMenuEvent.Reason valueOf(java.lang.String name)

### value

    public int value()

  This function should return an integer value for the enum values of the enumeration that implements this interface.

  Specified by:
    `value` in interface `QtEnumerator`

### resolve

    public static QContextMenuEvent.Reason resolve(int value)

  Returns the Reason constant with the specified `int`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD