java.lang.Object
java.lang.Enum<Html>
com.djrapitops.plan.delivery.rendering.html.Html
All Implemented Interfaces:
Serializable, Comparable<Html>, Constable

public enum Html extends Enum<Html>
  • Enum Constant Details

    • COLOR_0

      public static final Html COLOR_0
    • COLOR_1

      public static final Html COLOR_1
    • COLOR_2

      public static final Html COLOR_2
    • COLOR_3

      public static final Html COLOR_3
    • COLOR_4

      public static final Html COLOR_4
    • COLOR_5

      public static final Html COLOR_5
    • COLOR_6

      public static final Html COLOR_6
    • COLOR_7

      public static final Html COLOR_7
    • COLOR_8

      public static final Html COLOR_8
    • COLOR_9

      public static final Html COLOR_9
    • COLOR_A

      public static final Html COLOR_A
    • COLOR_B

      public static final Html COLOR_B
    • COLOR_C

      public static final Html COLOR_C
    • COLOR_D

      public static final Html COLOR_D
    • COLOR_E

      public static final Html COLOR_E
    • COLOR_F

      public static final Html COLOR_F
    • SPAN

      public static final Html SPAN
    • BACK_BUTTON_NETWORK

      public static final Html BACK_BUTTON_NETWORK
    • BACK_BUTTON_SERVER

      public static final Html BACK_BUTTON_SERVER
  • Method Details

    • values

      public static Html[] 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 Html 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
    • swapColorCodesToSpan

      public static String swapColorCodesToSpan(String string)
      Changes Minecraft color codes to HTML span elements with correct color class assignments.
      Parameters:
      string - String to replace Minecraft color codes from
      Returns:
      String with span elements.
    • separateWithDots

      public static String separateWithDots(String... elements)
    • create

      public String create()
      Returns:
      The HTML String
    • create

      public String create(Serializable... replacements)
      Parameters:
      replacements - The replacement Strings
      Returns:
      The HTML String
    • encodeToURL

      public static String encodeToURL(String string)