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