Enum Class CKEditorTheme

java.lang.Object
java.lang.Enum<CKEditorTheme>
com.wontlost.ckeditor.CKEditorTheme
All Implemented Interfaces:
Serializable, Comparable<CKEditorTheme>, Constable

public enum CKEditorTheme extends Enum<CKEditorTheme>
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.
  • Enum Constant Details

    • AUTO

      public static final CKEditorTheme AUTO
      Auto theme - syncs with Vaadin's Lumo theme and OS dark mode preference. This is the recommended default for seamless Vaadin integration.
    • LIGHT

      public static final CKEditorTheme LIGHT
      Light theme - forces light mode regardless of Vaadin/OS settings.
    • DARK

      public static final CKEditorTheme DARK
      Dark theme - forces dark mode regardless of Vaadin/OS settings.
  • Method Details

    • values

      public static CKEditorTheme[] 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

      public static CKEditorTheme valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getJsName

      public String getJsName()
      Get JavaScript name
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CKEditorTheme>