Class IconSetRegistry
java.lang.Object
com.foreach.across.modules.bootstrapui.elements.icons.IconSetRegistry
Is used to add, remove or get an
IconSet
from the IconSetRegistry
collection.
If you are looking for an easy way to render or get an immutable icon, you can use the IconSet.icon(String)
- Since:
- 3.0.0
- Author:
- Stijn Vanhoof
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addIconSet
(@NonNull String name, @NonNull MutableIconSet MutableIconSet) Add anMutableIconSet
to the collection ofIconSetRegistry
static Map<String,
MutableIconSet> Get all registeredMutableIconSet
by namestatic MutableIconSet
getIconSet
(@NonNull String name) Get's a registeredMutableIconSet
from the collection so you can modify the iconSet If you just want to render the icon take a look at theIconSet
static void
Remove allMutableIconSet
from theIconSetRegistry
static void
removeIconSet
(@NonNull String name) Remove anMutableIconSet
from theIconSetRegistry
-
Constructor Details
-
IconSetRegistry
public IconSetRegistry()
-
-
Method Details
-
getIconSet
Get's a registeredMutableIconSet
from the collection so you can modify the iconSet If you just want to render the icon take a look at theIconSet
- Parameters:
name
- of theMutableIconSet
to add- Returns:
- the newly added
MutableIconSet
-
getAllIconSets
Get all registeredMutableIconSet
by name- Returns:
- an unmodifiable map of the registered
MutableIconSet
-
addIconSet
public static void addIconSet(@NonNull @NonNull String name, @NonNull @NonNull MutableIconSet MutableIconSet) Add anMutableIconSet
to the collection ofIconSetRegistry
- Parameters:
name
- theMutableIconSet
will be registered underMutableIconSet
- to register
-
removeIconSet
Remove anMutableIconSet
from theIconSetRegistry
- Parameters:
name
-
-
removeAllIconSets
public static void removeAllIconSets()Remove allMutableIconSet
from theIconSetRegistry
-