Package it.tidalwave.role.ui
Interface MutableDisplayable
-
- All Superinterfaces:
Displayable
- All Known Subinterfaces:
MutableLocalizedDisplayable
public interface MutableDisplayable extends Displayable
A specializedDisplayablewhich is mutable (that is, its display name can be changed) and firesPropertyChangeEvents.- 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.StringPROP_DISPLAY_NAMEThe property name for displayNamestatic java.lang.StringPROP_DISPLAY_NAMESThe 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 voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)Registers aPropertyChangeListener.static MutableDisplayableof(java.lang.String displayName)Creates an instance with an initial given display name inLocale.ENGLISH.static MutableDisplayableof(java.lang.String displayName, java.lang.String toStringName)Creates an instance with an initial given display name inLocale.ENGLISHand an explicit identifier fortoString().voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)Unregisters aPropertyChangeListener.voidsetDisplayName(java.lang.String displayName)Sets the display name inLocale.ENGLISH.voidsetDisplayName(java.lang.String displayName, java.util.Locale locale)Sets the display name in the givenLocale.voidsetDisplayNames(java.util.Map<java.util.Locale,java.lang.String> displayNames)Sets a bag of display names for a number ofLocales.-
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 ofLocales.- 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.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
-
-