com.trolltech.qt.gui
Enum QDialogButtonBox.StandardButton

java.lang.Object
  extended by java.lang.Enum<QDialogButtonBox.StandardButton>
      extended by com.trolltech.qt.gui.QDialogButtonBox.StandardButton
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable<QDialogButtonBox.StandardButton>
Enclosing class:
QDialogButtonBox

public static enum QDialogButtonBox.StandardButton
extends java.lang.Enum<QDialogButtonBox.StandardButton>
implements QtEnumerator

These enums describe flags for standard buttons. Each button has a defined ButtonRole.

See Also:
ButtonRole, standardButtons

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()
           
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'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

NoButton

public static final QDialogButtonBox.StandardButton NoButton

An invalid button.


Ok

public static final QDialogButtonBox.StandardButton Ok

An "OK" button defined with the AcceptRole.


Save

public static final QDialogButtonBox.StandardButton Save

A "Save" button defined with the AcceptRole.


SaveAll

public static final QDialogButtonBox.StandardButton SaveAll

A "Save All" button defined with the AcceptRole.


Open

public static final QDialogButtonBox.StandardButton Open

A "Open" button defined with the AcceptRole.


Yes

public static final QDialogButtonBox.StandardButton Yes

A "Yes" button defined with the YesRole.


YesToAll

public static final QDialogButtonBox.StandardButton YesToAll

A "Yes to All" button defined with the YesRole.


No

public static final QDialogButtonBox.StandardButton No

A "No" button defined with the NoRole.


NoToAll

public static final QDialogButtonBox.StandardButton NoToAll

A "No to All" button defined with the NoRole.


Abort

public static final QDialogButtonBox.StandardButton Abort

An "Abort" button defined with the RejectRole.


Retry

public static final QDialogButtonBox.StandardButton Retry

A "Retry" button defined with the AcceptRole.


Ignore

public static final QDialogButtonBox.StandardButton Ignore

An "Ignore" button defined with the AcceptRole.


Close

public static final QDialogButtonBox.StandardButton Close

A "Close" button defined with the RejectRole.


Cancel

public static final QDialogButtonBox.StandardButton Cancel

A "Cancel" button defined with the RejectRole.


Discard

public static final QDialogButtonBox.StandardButton Discard

A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole.


Help

public static final QDialogButtonBox.StandardButton Help

A "Help" button defined with the HelpRole.


Apply

public static final QDialogButtonBox.StandardButton Apply

An "Apply" button defined with the ApplyRole.


Reset

public static final QDialogButtonBox.StandardButton Reset

A "Reset" button defined with the ResetRole.


RestoreDefaults

public static final QDialogButtonBox.StandardButton RestoreDefaults

A "Restore Defaults" button defined with the ResetRole.

Method Detail

values

public static final QDialogButtonBox.StandardButton[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(QDialogButtonBox.StandardButton c : QDialogButtonBox.StandardButton.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static QDialogButtonBox.StandardButton valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

value

public int value()
Specified by:
value in interface QtEnumerator

createQFlags

public static QDialogButtonBox.StandardButtons createQFlags(QDialogButtonBox.StandardButton... values)

resolve

public static QDialogButtonBox.StandardButton resolve(int value)