Package it.tidalwave.ui.core.role.spi
Class MutableIconProviderSupport
java.lang.Object
it.tidalwave.ui.core.role.spi.MutableIconProviderSupport
- All Implemented Interfaces:
Mutable,IconProvider,MutableIconProvider
A convenient support for implementing a
MutableIconProvider.- Since:
- 2.0-ALPHA-1
- Author:
- Fabrizio Giudici
-
Field Summary
Fields inherited from interface it.tidalwave.ui.core.role.IconProvider
_IconProvider_, DEFAULTFields inherited from interface it.tidalwave.ui.core.role.MutableIconProvider
_MutableIconProvider_, PROP_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfireIconChange(Icon oldIcon, Icon newIcon) Fires the event notifying thatMutableIconProvider.PROP_ICONhas been changed.voidSets the icon.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.tidalwave.ui.core.role.IconProvider
getIconMethods inherited from interface it.tidalwave.ui.core.Mutable
addListener, addListener1, addListener2, addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removeListener, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
MutableIconProviderSupport
public MutableIconProviderSupport()
-
-
Method Details
-
setIcon
Sets the icon. Note that implementations don't actually need to do something in this method: for instance, a validMutableIconProvidercan autonomously change icon in function of time (e.g. a blinking icon) or reacting to a change in the context. FIXME: this method does nothing. Probably this is inconsistent with DefaultMutableDisplayable? But that is a Default*, we're just a *Support...- Specified by:
setIconin interfaceMutableIconProvider- Parameters:
icon- the icon
-
fireIconChange
Fires the event notifying thatMutableIconProvider.PROP_ICONhas been changed.- Parameters:
oldIcon- the old value of the propertynewIcon- the new value of the property
-