Package it.tidalwave.role.ui
Interface MutableDisplayable
-
- All Superinterfaces:
Displayable
- All Known Subinterfaces:
MutableLocalizedDisplayable
public interface MutableDisplayable extends Displayable
A specializedDisplayable
which is mutable (that is, its display name can be changed) and firesPropertyChangeEvent
s.- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<MutableDisplayable>
_MutableDisplayable_
static java.lang.String
PROP_DISPLAY_NAME
The property name for displayNamestatic java.lang.String
PROP_DISPLAY_NAMES
The property name for displayNames-
Fields inherited from interface it.tidalwave.role.ui.Displayable
_Displayable_, DEFAULT
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers aPropertyChangeListener
.static MutableDisplayable
of(java.lang.String displayName)
Creates an instance with an initial given display name inLocale.ENGLISH
.static MutableDisplayable
of(java.lang.String displayName, java.lang.String toStringName)
Creates an instance with an initial given display name inLocale.ENGLISH
and an explicit identifier fortoString()
.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters aPropertyChangeListener
.void
setDisplayName(java.lang.String displayName)
Sets the display name inLocale.ENGLISH
.void
setDisplayName(java.lang.String displayName, java.util.Locale locale)
Sets the display name in the givenLocale
.void
setDisplayNames(java.util.Map<java.util.Locale,java.lang.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 Detail
-
_MutableDisplayable_
static final java.lang.Class<MutableDisplayable> _MutableDisplayable_
-
PROP_DISPLAY_NAME
static final java.lang.String PROP_DISPLAY_NAME
The property name for displayName- See Also:
- Constant Field Values
-
PROP_DISPLAY_NAMES
static final java.lang.String PROP_DISPLAY_NAMES
The property name for displayNames- See Also:
- Constant Field Values
-
-
Method Detail
-
setDisplayName
void setDisplayName(@Nonnull java.lang.String displayName)
Sets the display name inLocale.ENGLISH
.- Parameters:
displayName
- the display name
-
setDisplayName
void setDisplayName(@Nonnull java.lang.String displayName, @Nonnull java.util.Locale locale)
Sets the display name in the givenLocale
.- Parameters:
displayName
- the display namelocale
- the locale
-
setDisplayNames
void setDisplayNames(@Nonnull java.util.Map<java.util.Locale,java.lang.String> displayNames)
Sets a bag of display names for a number ofLocale
s.- Parameters:
displayNames
- the display names
-
addPropertyChangeListener
void addPropertyChangeListener(@Nonnull java.beans.PropertyChangeListener listener)
Registers aPropertyChangeListener
.- Parameters:
listener
- the listener
-
removePropertyChangeListener
void removePropertyChangeListener(@Nonnull java.beans.PropertyChangeListener listener)
Unregisters aPropertyChangeListener
.- Parameters:
listener
- the listener
-
of
@Nonnull static MutableDisplayable of(@Nonnull java.lang.String displayName)
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
@Nonnull static MutableDisplayable of(@Nonnull java.lang.String displayName, @Nonnull java.lang.String toStringName)
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
-
-