- All Implemented Interfaces:
QtAbstractEnumerator
,QtAbstractFlagEnumerator
,QtEnumerator
,QtFlagEnumerator
,Serializable
,Comparable<QStyle.SubControl>
,Constable
- Enclosing class:
QStyle
Java wrapper for Qt enum QStyle::SubControl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionasFlags()
Create a QFlags of the enum entry.Combines this entry with other enum entry.static QStyle.SubControls
flags
(QStyle.SubControl... values) Creates a newQStyle.SubControls
from the entries.static QStyle.SubControl
resolve
(int value) Returns the corresponding enum entry for the given value.static QStyle.SubControl
Returns the corresponding enum entry for the given value and name.int
value()
This function should return an integer value for the enum values of the enumeration that implements this interface.static QStyle.SubControl
Returns the enum constant of this type with the specified name.static QStyle.SubControl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.qt.QtEnumerator
getDeclaringClass, name, ordinal
-
Enum Constant Details
-
SC_None
-
SC_ScrollBarAddLine
-
SC_ScrollBarSubLine
-
SC_ScrollBarAddPage
-
SC_ScrollBarSubPage
-
SC_ScrollBarFirst
-
SC_ScrollBarLast
-
SC_ScrollBarSlider
-
SC_ScrollBarGroove
-
SC_SpinBoxUp
-
SC_SpinBoxDown
-
SC_SpinBoxFrame
-
SC_SpinBoxEditField
-
SC_ComboBoxFrame
-
SC_ComboBoxEditField
-
SC_ComboBoxArrow
-
SC_ComboBoxListBoxPopup
-
SC_SliderGroove
-
SC_SliderHandle
-
SC_SliderTickmarks
-
SC_ToolButton
-
SC_ToolButtonMenu
-
SC_TitleBarSysMenu
-
SC_TitleBarMinButton
-
SC_TitleBarMaxButton
-
SC_TitleBarCloseButton
-
SC_TitleBarNormalButton
-
SC_TitleBarShadeButton
-
SC_TitleBarUnshadeButton
-
SC_TitleBarContextHelpButton
-
SC_TitleBarLabel
-
SC_DialGroove
-
SC_DialHandle
-
SC_DialTickmarks
-
SC_GroupBoxCheckBox
-
SC_GroupBoxLabel
-
SC_GroupBoxContents
-
SC_GroupBoxFrame
-
SC_MdiMinButton
-
SC_MdiNormalButton
-
SC_MdiCloseButton
-
SC_CustomBase
-
SC_All
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()This function should return an integer value for the enum values of the enumeration that implements this interface.- Specified by:
value
in interfaceQtEnumerator
- Specified by:
value
in interfaceQtFlagEnumerator
-
asFlags
Create a QFlags of the enum entry.- Specified by:
asFlags
in interfaceQtAbstractFlagEnumerator
- Specified by:
asFlags
in interfaceQtFlagEnumerator
- Returns:
- QFlags
-
combined
Combines this entry with other enum entry.- Parameters:
e
- enum entry- Returns:
- new flag
-
flags
Creates a newQStyle.SubControls
from the entries.- Parameters:
values
- entries- Returns:
- new flag
-
resolve
Returns the corresponding enum entry for the given value.- Parameters:
value
-- Returns:
- enum entry
- Throws:
QNoSuchEnumValueException
- if value not existent in the enum
-
resolve
Returns the corresponding enum entry for the given value and name.- Parameters:
value
-name
-- Returns:
- enum entry
- Throws:
QNoSuchEnumValueException
- if value not existent in the enum or name does not match.
-