Interface MutableIconSet
- All Superinterfaces:
IconSet
- All Known Implementing Classes:
SimpleIconSet
The purpose of a
MutableIconSet
is to modify the icons of an IconSet
that is registered in the IconSetRegistry
You can add, remove and delete icons from the IconSet.
If you just want to get an icon for rendering, you should use the IconSet
- Since:
- 3.0.0
- Author:
- Stijn Vanhoof
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NonNull String name, Function<String, com.foreach.across.modules.web.ui.elements.HtmlViewElement> iconResolver) Adds an icon to theMutableIconSet
.void
Removes an icon from theMutableIconSet
.void
Remove all icons from theMutableIconSet
.Methods inherited from interface com.foreach.across.modules.bootstrapui.elements.icons.IconSet
getAllRegisteredIcons, icon
-
Method Details
-
add
void add(@NonNull @NonNull String name, Function<String, com.foreach.across.modules.web.ui.elements.HtmlViewElement> iconResolver) Adds an icon to theMutableIconSet
.- Parameters:
name
- of the icon to add to the currentMutableIconSet
.iconResolver
- that will be used to resolve aAbstractNodeViewElement
icon
-
remove
Removes an icon from theMutableIconSet
.- Parameters:
name
- of the icon to be removed
-
removeAll
void removeAll()Remove all icons from theMutableIconSet
.
-