com.trolltech.qt.gui
Class QContextMenuEvent.Reason

java.lang.Object
  extended by java.lang.Enum
      extended by 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 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 QContextMenuEvent$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. Normally this means the right mouse button was clicked, but this is platform dependent.


Keyboard

public static final QContextMenuEvent.Reason Keyboard
The keyboard caused this event to be sent. On Windows, 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 QContextMenuEvent$Reason constant with the specified int.