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