|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QDialogButtonBox.ButtonRole>
com.trolltech.qt.gui.QDialogButtonBox.ButtonRole
public static enum QDialogButtonBox.ButtonRole
This enum describes the roles that can be used to describe buttons in the button box. Combinations of these roles are as flags used to describe different aspects of their behavior.
Enum Constant Summary | |
---|---|
AcceptRole
Clicking the button causes the dialog to be accepted (e.g. OK). |
|
ActionRole
Clicking the button causes changes to the elements within the dialog, without closing the dialog. |
|
ApplyRole
The button applies current changes. |
|
DestructiveRole
Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog. |
|
HelpRole
The button can be clicked to request help. |
|
InvalidRole
The button is invalid. |
|
NoRole
The button is a "No"-like button. |
|
NRoles
Internal. |
|
RejectRole
Clicking the button causes the dialog to be rejected (e.g. Cancel). |
|
ResetRole
The button resets the dialog's fields to default values. |
|
YesRole
The button is a "Yes"-like button. |
Method Summary | |
---|---|
static QDialogButtonBox.ButtonRole |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QDialogButtonBox.ButtonRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QDialogButtonBox.ButtonRole[] |
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 QDialogButtonBox.ButtonRole InvalidRole
The button is invalid.
public static final QDialogButtonBox.ButtonRole AcceptRole
Clicking the button causes the dialog to be accepted (e.g. OK).
public static final QDialogButtonBox.ButtonRole RejectRole
Clicking the button causes the dialog to be rejected (e.g. Cancel).
public static final QDialogButtonBox.ButtonRole DestructiveRole
Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog.
public static final QDialogButtonBox.ButtonRole ActionRole
Clicking the button causes changes to the elements within the dialog, without closing the dialog.
public static final QDialogButtonBox.ButtonRole HelpRole
The button can be clicked to request help.
public static final QDialogButtonBox.ButtonRole YesRole
The button is a "Yes"-like button.
public static final QDialogButtonBox.ButtonRole NoRole
The button is a "No"-like button.
public static final QDialogButtonBox.ButtonRole ResetRole
The button resets the dialog's fields to default values.
public static final QDialogButtonBox.ButtonRole ApplyRole
The button applies current changes.
public static final QDialogButtonBox.ButtonRole NRoles
Method Detail |
---|
public static final QDialogButtonBox.ButtonRole[] values()
for(QDialogButtonBox.ButtonRole c : QDialogButtonBox.ButtonRole.values()) System.out.println(c);
public static QDialogButtonBox.ButtonRole 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 QDialogButtonBox.ButtonRole resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |