Interface MutableIconProvider

All Superinterfaces:
IconProvider
All Known Implementing Classes:
MutableIconProviderSupport

public interface MutableIconProvider extends IconProvider
A specialized IconProvider which is mutable and fires PropertyChangeEvents.
Author:
Fabrizio Giudici
Status: draft API
Stereotype:
Role
  • Field Details

  • Method Details

    • setIcon

      void setIcon(@Nonnull Icon icon)
      Sets the icon. Note that implementations don't actually need to do something in this method: for instance, a valid MutableIconProvider can autonomously change icon in function of time (e.g. a blinking icon) or reacting to a change in the context.
      Parameters:
      icon - the icon
    • addPropertyChangeListener

      void addPropertyChangeListener(@Nonnull PropertyChangeListener listener)
      Parameters:
      listener - the listener
    • removePropertyChangeListener

      void removePropertyChangeListener(@Nonnull PropertyChangeListener listener)
      Unregisters a PropertyChangeListener.
      Parameters:
      listener - the listener