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 QToolButton.ToolButtonPopupMode

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.gui.QToolButton.ToolButtonPopupMode

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

Enclosing class:
  QToolButton

    public static final class QToolButton.ToolButtonPopupMode

extends java.lang.Enum
implements QtEnumerator

Describes how a menu should be popped up for tool buttons that has a menu set or contains a list of actions.

See Also:
  Serialized Form

Field Summary
`static QToolButton.ToolButtonPopupMode` | `DelayedPopup` After pressing and holding the tool button down for a certain amount of time (the timeout is style dependant, see `QStyle::SH_ToolButton_PopupDelay` ), the menu is displayed.
`static QToolButton.ToolButtonPopupMode` | `InstantPopup` The menu is displayed, without delay, when the tool button is pressed.
`static QToolButton.ToolButtonPopupMode` | `MenuButtonPopup` In this mode the tool button displays a special arrow to indicate that a menu is present.

Method Summary
`static QToolButton.ToolButtonPopupMode` | `resolve(int value)` Returns the ToolButtonPopupMode 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 QToolButton.ToolButtonPopupMode` | `valueOf(java.lang.String name)`
`static QToolButton.ToolButtonPopupMode[]` | `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

### DelayedPopup

    public static final QToolButton.ToolButtonPopupMode DelayedPopup

  After pressing and holding the tool button down for a certain amount of time (the timeout is style dependant, see `QStyle::SH_ToolButton_PopupDelay` ), the menu is displayed. A typical application example is the "back" button in some web browsers's tool bars. If the user clicks it, the browser simply browses back to the previous page. If the user presses and holds the button down for a while, the tool button shows a menu containing the current history list

### MenuButtonPopup

    public static final QToolButton.ToolButtonPopupMode MenuButtonPopup

  In this mode the tool button displays a special arrow to indicate that a menu is present. The menu is displayed when the arrow part of the button is pressed.

### InstantPopup

    public static final QToolButton.ToolButtonPopupMode InstantPopup

  The menu is displayed, without delay, when the tool button is pressed. In this mode, the button's own action is not triggered.

Method Detail

### values

    public static QToolButton.ToolButtonPopupMode[] values()

### valueOf

    public static QToolButton.ToolButtonPopupMode 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 QToolButton.ToolButtonPopupMode resolve(int value)

  Returns the ToolButtonPopupMode 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