Qt Jambi Home

com.trolltech.qt.gui
Enum QDialogButtonBox.ButtonRole

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

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

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.

See Also:
StandardButton

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 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

InvalidRole

public static final QDialogButtonBox.ButtonRole InvalidRole

The button is invalid.


AcceptRole

public static final QDialogButtonBox.ButtonRole AcceptRole

Clicking the button causes the dialog to be accepted (e.g. OK).


RejectRole

public static final QDialogButtonBox.ButtonRole RejectRole

Clicking the button causes the dialog to be rejected (e.g. Cancel).


DestructiveRole

public static final QDialogButtonBox.ButtonRole DestructiveRole

Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog.


ActionRole

public static final QDialogButtonBox.ButtonRole ActionRole

Clicking the button causes changes to the elements within the dialog, without closing the dialog.


HelpRole

public static final QDialogButtonBox.ButtonRole HelpRole

The button can be clicked to request help.


YesRole

public static final QDialogButtonBox.ButtonRole YesRole

The button is a "Yes"-like button.


NoRole

public static final QDialogButtonBox.ButtonRole NoRole

The button is a "No"-like button.


ResetRole

public static final QDialogButtonBox.ButtonRole ResetRole

The button resets the dialog's fields to default values.


ApplyRole

public static final QDialogButtonBox.ButtonRole ApplyRole

The button applies current changes.


NRoles

public static final QDialogButtonBox.ButtonRole NRoles
Internal.

Method Detail

values

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

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

valueOf

public static QDialogButtonBox.ButtonRole 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
java.lang.NullPointerException - if the argument is null

value

public int value()
Description copied from interface: QtEnumerator
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QDialogButtonBox.ButtonRole resolve(int value)

Qt Jambi Home