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