- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QDialogButtonBox.StandardButtons>
- Enclosing class:
- QDialogButtonBox
public static final class QDialogButtonBox.StandardButtons extends QFlags<QDialogButtonBox.StandardButton> implements Comparable<QDialogButtonBox.StandardButtons>
QFlags type for enum
QDialogButtonBox.StandardButton
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StandardButtons(int value)
Creates a new StandardButtons with givenvalue
.StandardButtons(QDialogButtonBox.StandardButton... args)
Creates a new StandardButtons where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QDialogButtonBox.StandardButtons
clone()
Clones the flagsQDialogButtonBox.StandardButtons
combined(QDialogButtonBox.StandardButton e)
Combines this flags with enum entry.int
compareTo(QDialogButtonBox.StandardButtons other)
QDialogButtonBox.StandardButton[]
flags()
Returns an array of flag objects represented by this StandardButtons.QDialogButtonBox.StandardButtons
setFlag(QDialogButtonBox.StandardButton e)
Sets the flage
QDialogButtonBox.StandardButtons
setFlag(QDialogButtonBox.StandardButton e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
StandardButtons
Creates a new StandardButtons where the flags inargs
are set.- Parameters:
args
- enum entries
-
StandardButtons
public StandardButtons(int value)Creates a new StandardButtons with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QDialogButtonBox.StandardButton>
- Parameters:
e
- enum entry- Returns:
- new StandardButtons
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QDialogButtonBox.StandardButton>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QDialogButtonBox.StandardButtons setFlag(QDialogButtonBox.StandardButton e, boolean on)Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QDialogButtonBox.StandardButton>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this StandardButtons.- Overrides:
flags
in classQFlags<QDialogButtonBox.StandardButton>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QDialogButtonBox.StandardButton>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QDialogButtonBox.StandardButtons>
-