Enum Class Preferences.DisplayMode
- All Implemented Interfaces:
Serializable
,Comparable<Preferences.DisplayMode>
,Constable
- Enclosing class:
- Preferences
Available display modes for property palette: by categories or ordered alphabetically.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplay mode of property palette, in which fields are shown in alphabetical order.Display mode of property palette, in which fields are distributed among sections. -
Method Summary
Modifier and TypeMethodDescriptionstatic Preferences.DisplayMode
fromInt
(int value) DeserializesPreferences.DisplayMode
from its integer representation.int
toInt()
SerializesPreferences.DisplayMode
into integer representation.static Preferences.DisplayMode
Returns the enum constant of this class with the specified name.static Preferences.DisplayMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CATEGORIES
Display mode of property palette, in which fields are distributed among sections. Sections have a title; they can be collapsed to hide all the fields that fall into it. Inside a section some fields may be grouped together to have different column layout; groups are separated with a horizontal bar. -
ALPHABETICALLY
Display mode of property palette, in which fields are shown in alphabetical order. The fields are ordered by their human readable caption, not by their internal name (actually, feature).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
DeserializesPreferences.DisplayMode
from its integer representation.- Parameters:
value
- an integer representation to deserializePreferences.DisplayMode
from- Returns:
- One of
Preferences.DisplayMode
s ornull
. - See Also:
-
toInt
public int toInt()SerializesPreferences.DisplayMode
into integer representation.- Returns:
- an integer
- See Also:
-