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 PropertyChangeEvents.- Since:
- 2.0-ALPHA-1
- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<MutableDisplayable> static final StringThe property name for displayNamestatic final StringThe property name for displayNamesFields inherited from interface it.tidalwave.ui.core.role.Displayable
_Displayable_, DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableDisplayableCreates an instance with an initial given display name inLocale.ENGLISH.static MutableDisplayableCreates an instance with an initial given display name inLocale.ENGLISHand an explicit identifier fortoString().voidsetDisplayName(String displayName) Sets the display name inLocale.ENGLISH.voidsetDisplayName(String displayName, Locale locale) Sets the display name in the givenLocale.voidsetDisplayNames(Map<Locale, String> displayNames) Sets a bag of display names for a number ofLocales.Methods inherited from interface it.tidalwave.ui.core.role.Displayable
display, getDisplayName, getDisplayName, getDisplayNames, getLocales, render, renderToMethods 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 ofLocales.- 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.ENGLISHand 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
-