|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QMessageBox.ButtonRole>
com.trolltech.qt.gui.QMessageBox.ButtonRole
public static enum QMessageBox.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 QMessageBox.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 QMessageBox.ButtonRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QMessageBox.ButtonRole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
Enum Constant Detail |
---|
public static final QMessageBox.ButtonRole InvalidRole
The button is invalid.
public static final QMessageBox.ButtonRole AcceptRole
Clicking the button causes the dialog to be accepted (e.g. OK).
public static final QMessageBox.ButtonRole RejectRole
Clicking the button causes the dialog to be rejected (e.g. Cancel).
public static final QMessageBox.ButtonRole DestructiveRole
Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog.
public static final QMessageBox.ButtonRole ActionRole
Clicking the button causes changes to the elements within the dialog, without closing the dialog.
public static final QMessageBox.ButtonRole HelpRole
The button can be clicked to request help.
public static final QMessageBox.ButtonRole YesRole
The button is a "Yes"-like button.
public static final QMessageBox.ButtonRole NoRole
The button is a "No"-like button.
public static final QMessageBox.ButtonRole ResetRole
The button resets the dialog's fields to default values.
public static final QMessageBox.ButtonRole ApplyRole
The button applies current changes.
public static final QMessageBox.ButtonRole NRoles
Method Detail |
---|
public static QMessageBox.ButtonRole[] values()
for (QMessageBox.ButtonRole c : QMessageBox.ButtonRole.values()) System.out.println(c);
public static QMessageBox.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 name
java.lang.NullPointerException
- if the argument is nullpublic int value()
QtEnumerator
value
in interface QtEnumerator
public static QMessageBox.ButtonRole resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |