Package it.tidalwave.role.ui
Interface MutableIconProvider
- All Superinterfaces:
IconProvider
- All Known Implementing Classes:
MutableIconProviderSupport
A specialized
IconProvider
which is mutable and fires PropertyChangeEvent
s.- Author:
- Fabrizio Giudici
- Status: draft API
- Stereotype:
- Role
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class
<MutableIconProvider> static final String
The property name for icon.Fields inherited from interface it.tidalwave.role.ui.IconProvider
_IconProvider_, DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers aPropertyChangeListener
.void
Unregisters aPropertyChangeListener
.void
Sets the icon.Methods inherited from interface it.tidalwave.role.ui.IconProvider
getIcon
-
Field Details
-
_MutableIconProvider_
-
PROP_ICON
The property name for icon.- See Also:
-
-
Method Details
-
setIcon
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
Registers aPropertyChangeListener
.- Parameters:
listener
- the listener
-
removePropertyChangeListener
Unregisters aPropertyChangeListener
.- Parameters:
listener
- the listener
-