|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QStyleOptionMenuItem.MenuItemType>
com.trolltech.qt.gui.QStyleOptionMenuItem.MenuItemType
public static enum QStyleOptionMenuItem.MenuItemType
This enum indicates the type of menu item that the structure describes.
Enum Constant Summary | |
---|---|
DefaultItem
A menu item that is the default action as specified with QMenu::defaultAction. |
|
EmptyArea
The empty area of the menu. |
|
Margin
The margin of the menu. |
|
Normal
A normal menu item. |
|
Scroller
A popup menu scroller (currently only used on Mac OS X). |
|
Separator
A menu separator. |
|
SubMenu
Indicates the menu item points to a sub-menu. |
|
TearOff
A tear-off handle for the menu. |
Method Summary | |
---|---|
static QStyleOptionMenuItem.MenuItemType |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QStyleOptionMenuItem.MenuItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QStyleOptionMenuItem.MenuItemType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QStyleOptionMenuItem.MenuItemType Normal
A normal menu item.
public static final QStyleOptionMenuItem.MenuItemType DefaultItem
A menu item that is the default action as specified with QMenu::defaultAction.
public static final QStyleOptionMenuItem.MenuItemType Separator
A menu separator.
public static final QStyleOptionMenuItem.MenuItemType SubMenu
Indicates the menu item points to a sub-menu.
public static final QStyleOptionMenuItem.MenuItemType Scroller
A popup menu scroller (currently only used on Mac OS X).
public static final QStyleOptionMenuItem.MenuItemType TearOff
A tear-off handle for the menu.
public static final QStyleOptionMenuItem.MenuItemType Margin
The margin of the menu.
public static final QStyleOptionMenuItem.MenuItemType EmptyArea
The empty area of the menu.
Method Detail |
---|
public static final QStyleOptionMenuItem.MenuItemType[] values()
for(QStyleOptionMenuItem.MenuItemType c : QStyleOptionMenuItem.MenuItemType.values()) System.out.println(c);
public static QStyleOptionMenuItem.MenuItemType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QStyleOptionMenuItem.MenuItemType resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |