- All Implemented Interfaces:
QtAbstractEnumerator
,QtEnumerator
,Serializable
,Comparable<QStyle.ContentsType>
,Constable
- Enclosing class:
QStyle
Java wrapper for Qt enum QStyle::ContentsType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresentingQStyle::
CT_CheckBox RepresentingQStyle::
CT_ComboBox RepresentingQStyle::
CT_CustomBase RepresentingQStyle::
CT_DialogButtons RepresentingQStyle::
CT_GroupBox RepresentingQStyle::
CT_HeaderSection RepresentingQStyle::
CT_ItemViewItem RepresentingQStyle::
CT_LineEdit RepresentingQStyle::
CT_MdiControls RepresentingQStyle::
CT_Menu RepresentingQStyle::
CT_MenuBar RepresentingQStyle::
CT_MenuBarItem RepresentingQStyle::
CT_MenuItem RepresentingQStyle::
CT_ProgressBar RepresentingQStyle::
CT_PushButton RepresentingQStyle::
CT_RadioButton RepresentingQStyle::
CT_ScrollBar RepresentingQStyle::
CT_SizeGrip RepresentingQStyle::
CT_Slider RepresentingQStyle::
CT_SpinBox RepresentingQStyle::
CT_Splitter RepresentingQStyle::
CT_TabBarTab RepresentingQStyle::
CT_TabWidget RepresentingQStyle::
CT_ToolButton -
Method Summary
Modifier and TypeMethodDescriptionstatic QStyle.ContentsType
resolve
(int value) Returns the corresponding enum entry for the given value.static QStyle.ContentsType
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.ContentsType
Returns the enum constant of this type with the specified name.static QStyle.ContentsType[]
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
-
CT_PushButton
Representing
QStyle::
CT_PushButton -
CT_CheckBox
Representing
QStyle::
CT_CheckBox -
CT_RadioButton
Representing
QStyle::
CT_RadioButton -
CT_ToolButton
Representing
QStyle::
CT_ToolButton -
CT_ComboBox
Representing
QStyle::
CT_ComboBox -
CT_Splitter
Representing
QStyle::
CT_Splitter -
CT_ProgressBar
Representing
QStyle::
CT_ProgressBar -
CT_MenuItem
Representing
QStyle::
CT_MenuItem -
CT_MenuBarItem
Representing
QStyle::
CT_MenuBarItem -
CT_MenuBar
Representing
QStyle::
CT_MenuBar -
CT_Menu
Representing
QStyle::
CT_Menu -
CT_TabBarTab
Representing
QStyle::
CT_TabBarTab -
CT_Slider
Representing
QStyle::
CT_Slider -
CT_ScrollBar
Representing
QStyle::
CT_ScrollBar -
CT_LineEdit
Representing
QStyle::
CT_LineEdit -
CT_SpinBox
Representing
QStyle::
CT_SpinBox -
CT_SizeGrip
Representing
QStyle::
CT_SizeGrip -
CT_TabWidget
Representing
QStyle::
CT_TabWidget -
CT_DialogButtons
Representing
QStyle::
CT_DialogButtons -
CT_HeaderSection
Representing
QStyle::
CT_HeaderSection -
CT_GroupBox
Representing
QStyle::
CT_GroupBox -
CT_MdiControls
Representing
QStyle::
CT_MdiControls -
CT_ItemViewItem
Representing
QStyle::
CT_ItemViewItem -
CT_CustomBase
Representing
QStyle::
CT_CustomBase
-
-
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. Default isEnum.ordinal()
.- Specified by:
value
in interfaceQtEnumerator
-
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.
-