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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddIconSet(@NonNull String name, @NonNull MutableIconSet MutableIconSet) Add anMutableIconSetto the collection ofIconSetRegistrystatic Map<String,MutableIconSet> Get all registeredMutableIconSetby namestatic MutableIconSetgetIconSet(@NonNull String name) Get's a registeredMutableIconSetfrom the collection so you can modify the iconSet If you just want to render the icon take a look at theIconSetstatic voidRemove allMutableIconSetfrom theIconSetRegistrystatic voidremoveIconSet(@NonNull String name) Remove anMutableIconSetfrom theIconSetRegistry
-
Constructor Details
-
IconSetRegistry
public IconSetRegistry()
-
-
Method Details
-
getIconSet
Get's a registeredMutableIconSetfrom the collection so you can modify the iconSet If you just want to render the icon take a look at theIconSet- Parameters:
name- of theMutableIconSetto add- Returns:
- the newly added
MutableIconSet
-
getAllIconSets
Get all registeredMutableIconSetby name- Returns:
- an unmodifiable map of the registered
MutableIconSet
-
addIconSet
public static void addIconSet(@NonNull @NonNull String name, @NonNull @NonNull MutableIconSet MutableIconSet) Add anMutableIconSetto the collection ofIconSetRegistry- Parameters:
name- theMutableIconSetwill be registered underMutableIconSet- to register
-
removeIconSet
Remove anMutableIconSetfrom theIconSetRegistry- Parameters:
name-
-
removeAllIconSets
public static void removeAllIconSets()Remove allMutableIconSetfrom theIconSetRegistry
-