Interface EnumOptionRenderer

All Superinterfaces:
BasicRenderer, Renderer<EnumOptionRenderer>

public interface EnumOptionRenderer extends Renderer<EnumOptionRenderer>
Since:
3.9.0
  • Method Details

    • opposite

      @NotNull EnumOptionRenderer opposite(boolean value)
      When true renders value of oppositeName field instead of the name field.
    • opposite

      @NotNull EnumOptionRenderer opposite()
      Shortcut for calling opposite(boolean) with true
    • withColor

      @NotNull EnumOptionRenderer withColor(boolean value)
      Renders enum value with color defined in enum configuration. Default is false when this method is not called.
      Returns:
      the same instance to allow method chaining
      Since:
      3.9.2
    • withColor

      @NotNull EnumOptionRenderer withColor()
      Renders enum value with color defined in enum configuration. Shortcut for calling withColor(boolean) with true.
      Returns:
      the same instance to allow method chaining
      Since:
      3.9.2
    • withCustomTooltip

      @NotNull EnumOptionRenderer withCustomTooltip(@Nullable String value)
      Parameters:
      value - must be plain text. When rendered, it is encoded and used in the html title attribute.
      Since:
      3.23.4