Package it.tidalwave.ui.core.role
Interface MutableDisplayable
- All Superinterfaces:
Displayable
,Mutable
A specialized
Displayable
which is mutable (that is, its display name can be changed)
and fires PropertyChangeEvent
s.- Since:
- 2.0-ALPHA-1
- 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.ui.core.role.Displayable
_Displayable_, DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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.ui.core.role.Displayable
display, getDisplayName, getDisplayName, getDisplayNames, getLocales, render, renderTo
Methods inherited from interface it.tidalwave.ui.core.Mutable
addListener, addListener1, addListener2, addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removeListener, removePropertyChangeListener, removePropertyChangeListener
-
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
-
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
-