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