Enum Html
- java.lang.Object
-
- java.lang.Enum<Html>
-
- com.djrapitops.plan.delivery.rendering.html.Html
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
create()
java.lang.String
create(java.io.Serializable... replacements)
static java.lang.String
encodeToURL(java.lang.String string)
static java.lang.String
separateWithDots(java.lang.String... elements)
static java.lang.String
swapColorCodesToSpan(java.lang.String string)
Changes Minecraft color codes to HTML span elements with correct color class assignments.static Html
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Html[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
LINK
public static final Html LINK
-
LINK_EXTERNAL
public static final Html LINK_EXTERNAL
-
BACK_BUTTON_NETWORK
public static final Html BACK_BUTTON_NETWORK
-
BACK_BUTTON_SERVER
public static final Html BACK_BUTTON_SERVER
-
-
Method Detail
-
values
public static Html[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Html c : Html.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Html valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
swapColorCodesToSpan
public static java.lang.String swapColorCodesToSpan(java.lang.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 java.lang.String separateWithDots(java.lang.String... elements)
-
create
public java.lang.String create()
- Returns:
- The HTML String
-
create
public java.lang.String create(java.io.Serializable... replacements)
- Parameters:
replacements
- The replacement Strings- Returns:
- The HTML String
-
encodeToURL
public static java.lang.String encodeToURL(java.lang.String string)
-
-