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 PropertyChangeEvents.- 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.role.ui.Displayable
_Displayable_, DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters aPropertyChangeListener.static 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().voidUnregisters aPropertyChangeListener.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.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 ofLocales.- 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.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
-