Package it.tidalwave.role.ui
Interface MutableDisplayable
- All Superinterfaces:
Displayable
- All Known Subinterfaces:
MutableLocalizedDisplayable
A specialized
Displayable
which is mutable (that is, its display name can be changed)
and fires PropertyChangeEvent
s.- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class
<MutableDisplayable> static final String
The property name for displayNamestatic final String
The property name for displayNamesFields inherited from interface it.tidalwave.role.ui.Displayable
_Displayable_, DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers aPropertyChangeListener
.static MutableDisplayable
Creates an instance with an initial given display name inLocale.ENGLISH
.static MutableDisplayable
Creates an instance with an initial given display name inLocale.ENGLISH
and an explicit identifier fortoString()
.void
Unregisters aPropertyChangeListener
.void
setDisplayName
(String displayName) Sets the display name inLocale.ENGLISH
.void
setDisplayName
(String displayName, Locale locale) Sets the display name in the givenLocale
.void
setDisplayNames
(Map<Locale, String> displayNames) Sets a bag of display names for a number ofLocale
s.Methods inherited from interface it.tidalwave.role.ui.Displayable
display, getDisplayName
-
Field Details
-
_MutableDisplayable_
-
PROP_DISPLAY_NAME
The property name for displayName- See Also:
-
PROP_DISPLAY_NAMES
The property name for displayNames- See Also:
-
-
Method Details
-
setDisplayName
Sets the display name inLocale.ENGLISH
.- Parameters:
displayName
- the display name
-
setDisplayName
Sets the display name in the givenLocale
.- Parameters:
displayName
- the display namelocale
- the locale
-
setDisplayNames
Sets a bag of display names for a number ofLocale
s.- Parameters:
displayNames
- the display names
-
addPropertyChangeListener
Registers aPropertyChangeListener
.- Parameters:
listener
- the listener
-
removePropertyChangeListener
Unregisters aPropertyChangeListener
.- Parameters:
listener
- the listener
-
of
Creates an instance with an initial given display name inLocale.ENGLISH
.- Parameters:
displayName
- the display name- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1
-
of
Creates an instance with an initial given display name inLocale.ENGLISH
and an explicit identifier fortoString()
.- Parameters:
displayName
- the display nametoStringName
- the name to be rendered whentoString()
is called- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1
-