public final class EnumLazyIconProvider extends Object
| Constructor and Description |
|---|
EnumLazyIconProvider() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
getIcon(E enumeration,
String folder)
Returns cached or just loaded enum icon.
|
static <E extends Enum<E>> |
getIcon(E enumeration,
String state,
String folder)
Returns cached or just loaded enum icon for the specified state.
|
static <E extends Enum<E>> |
getIcon(E enumeration,
String state,
String folder,
String extension)
Returns cached or just loaded enum icon for the specified state.
|
@NotNull public static <E extends Enum<E>> ImageIcon getIcon(@NotNull E enumeration, @NotNull String folder)
E - enumeration typeenumeration - enumeration constant for which icon should be loadedfolder - enumeration icons folder@NotNull public static <E extends Enum<E>> ImageIcon getIcon(@NotNull E enumeration, @Nullable String state, @NotNull String folder)
E - enumeration typeenumeration - enumeration constant for which icon should be loadedstate - enumeration icon statefolder - enumeration icons folder@NotNull public static <E extends Enum<E>> ImageIcon getIcon(@NotNull E enumeration, @Nullable String state, @NotNull String folder, @NotNull String extension)
E - enumeration typeenumeration - enumeration constant for which icon should be loadedstate - enumeration icon statefolder - enumeration icons folderextension - image format extension with dotCopyright © 2020. All rights reserved.