Package it.tidalwave.role.ui
Interface MutableIconProvider
-
- All Superinterfaces:
IconProvider
- All Known Implementing Classes:
MutableIconProviderSupport
public interface MutableIconProvider extends IconProvider
A specializedIconProvider
which is mutable and firesPropertyChangeEvent
s.- Author:
- Fabrizio Giudici
- Status: draft API
- Stereotype:
- Role
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<MutableIconProvider>
_MutableIconProvider_
static java.lang.String
PROP_ICON
The property name for icon.-
Fields inherited from interface it.tidalwave.role.ui.IconProvider
_IconProvider_, DEFAULT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers aPropertyChangeListener
.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters aPropertyChangeListener
.void
setIcon(javax.swing.Icon icon)
Sets the icon.-
Methods inherited from interface it.tidalwave.role.ui.IconProvider
getIcon
-
-
-
-
Field Detail
-
_MutableIconProvider_
static final java.lang.Class<MutableIconProvider> _MutableIconProvider_
-
PROP_ICON
static final java.lang.String PROP_ICON
The property name for icon.- See Also:
- Constant Field Values
-
-
Method Detail
-
setIcon
void setIcon(@Nonnull javax.swing.Icon icon)
Sets the icon. Note that implementations don't actually need to do something in this method: for instance, a validMutableIconProvider
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 java.beans.PropertyChangeListener listener)
Registers aPropertyChangeListener
.- Parameters:
listener
- the listener
-
removePropertyChangeListener
void removePropertyChangeListener(@Nonnull java.beans.PropertyChangeListener listener)
Unregisters aPropertyChangeListener
.- Parameters:
listener
- the listener
-
-