- 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:
-
Constructor Summary
ConstructorDescriptionCreates a new StandardButtons.StandardButtons
(int value) Creates a new StandardButtons with givenvalue
.Creates a new StandardButtons where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QDialogButtonBox.StandardButton []
flags()
Returns an array of flag objects represented by this StandardButtons.Sets the flage
setFlag
(QDialogButtonBox.StandardButton e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
StandardButtons
public StandardButtons()Creates a new StandardButtons. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-