Interface MutableIconSet

All Superinterfaces:
IconSet
All Known Implementing Classes:
SimpleIconSet

public interface MutableIconSet extends IconSet
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 Details

    • add

      void add(@NonNull @NonNull String name, Function<String,com.foreach.across.modules.web.ui.elements.HtmlViewElement> iconResolver)
      Adds an icon to the MutableIconSet.
      Parameters:
      name - of the icon to add to the current MutableIconSet.
      iconResolver - that will be used to resolve a AbstractNodeViewElement icon
    • remove

      void remove(@NonNull @NonNull String name)
      Removes an icon from the MutableIconSet.
      Parameters:
      name - of the icon to be removed
    • removeAll

      void removeAll()
      Remove all icons from the MutableIconSet.