|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.tidalwave.role.spi.DefaultMutableDisplayable
public class DefaultMutableDisplayable
A default implementation of MutableLocalizedDisplayable
starting which a single display name in
Locale.ENGLISH
language.
Field Summary |
---|
Fields inherited from interface it.tidalwave.role.MutableLocalizedDisplayable |
---|
MutableLocalizedDisplayable |
Fields inherited from interface it.tidalwave.role.MutableDisplayable |
---|
MutableDisplayable, PROP_DISPLAY_NAME, PROP_DISPLAY_NAMES |
Fields inherited from interface it.tidalwave.role.LocalizedDisplayable |
---|
LocalizedDisplayable |
Fields inherited from interface it.tidalwave.role.Displayable |
---|
DEFAULT, Displayable |
Constructor Summary | |
---|---|
DefaultMutableDisplayable(java.lang.String displayName)
Creates an instance with an initial given display name in Locale.ENGLISH . |
|
DefaultMutableDisplayable(java.lang.String displayName,
java.lang.String toStringName)
Creates an instance with an initial given display name in Locale.ENGLISH and an explicit identifier for
toString() . |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers a PropertyChangeListener . |
java.lang.String |
getDisplayName()
Returns the display name in the current Locale . |
java.lang.String |
getDisplayName(java.util.Locale locale)
Returns the display name in the given Locale . |
java.util.Map<java.util.Locale,java.lang.String> |
getDisplayNames()
Returns all the display names in Map where they are indexed by Locale . |
java.util.SortedSet<java.util.Locale> |
getLocales()
Returns the supported Locale s. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters a PropertyChangeListener . |
void |
setDisplayName(java.lang.String displayName)
Sets the display name in Locale.ENGLISH . |
void |
setDisplayName(java.lang.String displayName,
java.util.Locale locale)
Sets the display name in the given Locale . |
void |
setDisplayNames(java.util.Map<java.util.Locale,java.lang.String> displayNames)
Sets a bag of display names for a number of Locale s. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultMutableDisplayable(@Nonnull java.lang.String displayName)
Locale.ENGLISH
.
displayName
- the display namepublic DefaultMutableDisplayable(@Nonnull java.lang.String displayName, @Nonnull java.lang.String toStringName)
Locale.ENGLISH
and an explicit identifier for
toString()
.
displayName
- the display nametoStringName
- the name to be rendered when toString()
is calledMethod Detail |
---|
@Nonnull public java.lang.String getDisplayName()
Locale
.
getDisplayName
in interface Displayable
@Nonnull public java.lang.String getDisplayName(@Nonnull java.util.Locale locale)
Locale
.
getDisplayName
in interface LocalizedDisplayable
locale
- the Locale
@Nonnull public java.util.SortedSet<java.util.Locale> getLocales()
Locale
s.
getLocales
in interface LocalizedDisplayable
Locale
s@Nonnull public java.util.Map<java.util.Locale,java.lang.String> getDisplayNames()
Map
where they are indexed by Locale
.
getDisplayNames
in interface LocalizedDisplayable
public void setDisplayName(@Nonnull java.lang.String displayName)
Locale.ENGLISH
.
setDisplayName
in interface MutableDisplayable
displayName
- the display namepublic void setDisplayName(@Nonnull java.lang.String displayName, @Nonnull java.util.Locale locale)
Locale
.
setDisplayName
in interface MutableDisplayable
displayName
- the display namelocale
- the localepublic void setDisplayNames(@Nonnull java.util.Map<java.util.Locale,java.lang.String> displayNames)
Locale
s.
setDisplayNames
in interface MutableDisplayable
displayNames
- the display namespublic void addPropertyChangeListener(@Nonnull java.beans.PropertyChangeListener listener)
PropertyChangeListener
.
addPropertyChangeListener
in interface MutableDisplayable
listener
- the listenerpublic void removePropertyChangeListener(@Nonnull java.beans.PropertyChangeListener listener)
PropertyChangeListener
.
removePropertyChangeListener
in interface MutableDisplayable
listener
- the listener@Nonnull public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |