|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QDialogButtonBox.StandardButton>
com.trolltech.qt.gui.QDialogButtonBox.StandardButton
public static enum QDialogButtonBox.StandardButton
These enums describe flags for standard buttons. Each button has a defined ButtonRole.
Enum Constant Summary | |
---|---|
Abort
An "Abort" button defined with the RejectRole. |
|
Apply
An "Apply" button defined with the ApplyRole. |
|
Cancel
A "Cancel" button defined with the RejectRole. |
|
Close
A "Close" button defined with the RejectRole. |
|
Discard
A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole. |
|
Help
A "Help" button defined with the HelpRole. |
|
Ignore
An "Ignore" button defined with the AcceptRole. |
|
No
A "No" button defined with the NoRole. |
|
NoButton
An invalid button. |
|
NoToAll
A "No to All" button defined with the NoRole. |
|
Ok
An "OK" button defined with the AcceptRole. |
|
Open
A "Open" button defined with the AcceptRole. |
|
Reset
A "Reset" button defined with the ResetRole. |
|
RestoreDefaults
A "Restore Defaults" button defined with the ResetRole. |
|
Retry
A "Retry" button defined with the AcceptRole. |
|
Save
A "Save" button defined with the AcceptRole. |
|
SaveAll
A "Save All" button defined with the AcceptRole. |
|
Yes
A "Yes" button defined with the YesRole. |
|
YesToAll
A "Yes to All" button defined with the YesRole. |
Method Summary | |
---|---|
static QDialogButtonBox.StandardButtons |
createQFlags(QDialogButtonBox.StandardButton... values)
|
static QDialogButtonBox.StandardButton |
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.StandardButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QDialogButtonBox.StandardButton[] |
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 QDialogButtonBox.StandardButton NoButton
An invalid button.
public static final QDialogButtonBox.StandardButton Ok
An "OK" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton Save
A "Save" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton SaveAll
A "Save All" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton Open
A "Open" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton Yes
A "Yes" button defined with the YesRole.
public static final QDialogButtonBox.StandardButton YesToAll
A "Yes to All" button defined with the YesRole.
public static final QDialogButtonBox.StandardButton No
A "No" button defined with the NoRole.
public static final QDialogButtonBox.StandardButton NoToAll
A "No to All" button defined with the NoRole.
public static final QDialogButtonBox.StandardButton Abort
An "Abort" button defined with the RejectRole.
public static final QDialogButtonBox.StandardButton Retry
A "Retry" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton Ignore
An "Ignore" button defined with the AcceptRole.
public static final QDialogButtonBox.StandardButton Close
A "Close" button defined with the RejectRole.
public static final QDialogButtonBox.StandardButton Cancel
A "Cancel" button defined with the RejectRole.
public static final QDialogButtonBox.StandardButton Discard
A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole.
public static final QDialogButtonBox.StandardButton Help
A "Help" button defined with the HelpRole.
public static final QDialogButtonBox.StandardButton Apply
An "Apply" button defined with the ApplyRole.
public static final QDialogButtonBox.StandardButton Reset
A "Reset" button defined with the ResetRole.
public static final QDialogButtonBox.StandardButton RestoreDefaults
A "Restore Defaults" button defined with the ResetRole.
Method Detail |
---|
public static QDialogButtonBox.StandardButton[] values()
for (QDialogButtonBox.StandardButton c : QDialogButtonBox.StandardButton.values()) System.out.println(c);
public static QDialogButtonBox.StandardButton 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 QDialogButtonBox.StandardButtons createQFlags(QDialogButtonBox.StandardButton... values)
public static QDialogButtonBox.StandardButton resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |