- 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
ConstructorsConstructorDescriptionCreates a new WizardOptions.WizardOptions(int value) Creates a new WizardOptions with givenvalue.WizardOptions(QWizard.WizardOption ... args) Creates a new WizardOptions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QWizard.WizardOptionsclone()Clones the flagsfinal QWizard.WizardOptionsCombines this flags with enum entry.final intcompareTo(QWizard.WizardOptions other) final QWizard.WizardOption []flags()Returns an array of flag objects represented by this WizardOptions.final QWizard.WizardOptionsSets the flagefinal QWizard.WizardOptionssetFlag(QWizard.WizardOption e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
WizardOptions
public WizardOptions()Creates a new WizardOptions. -
WizardOptions
Creates a new WizardOptions where the flags inargsare 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:
combinedin classQFlags<QWizard.WizardOption>- Parameters:
e- enum entry- Returns:
- new WizardOptions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QWizard.WizardOption>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QWizard.WizardOption>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QWizard.WizardOption>
-
compareTo
- Specified by:
compareToin 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
-