Enum Class CKEditorTheme
- All Implemented Interfaces:
Serializable, Comparable<CKEditorTheme>, Constable
CKEditor theme types.
Supports three modes:
AUTO- Automatically syncs with Vaadin's Lumo theme. When Vaadin switches between light/dark mode, CKEditor will follow. Also respects OS-level dark mode preference if Vaadin doesn't have an explicit theme set.LIGHT- Forces light theme regardless of Vaadin/OS settings.DARK- Forces dark theme regardless of Vaadin/OS settings.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGet JavaScript nametoString()static CKEditorThemeReturns the enum constant of this class with the specified name.static CKEditorTheme[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Auto theme - syncs with Vaadin's Lumo theme and OS dark mode preference. This is the recommended default for seamless Vaadin integration. -
LIGHT
Light theme - forces light mode regardless of Vaadin/OS settings. -
DARK
Dark theme - forces dark mode regardless of Vaadin/OS settings.
-
-
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
-
getJsName
Get JavaScript name -
toString
- Overrides:
toStringin classEnum<CKEditorTheme>
-