|
||||||||||
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(String displayName)
Creates an instance with an initial given display name in Locale.ENGLISH . |
|
DefaultMutableDisplayable(String displayName,
String toStringName)
Creates an instance with an initial given display name in Locale.ENGLISH and an explicit identifier for
toString() . |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers a PropertyChangeListener . |
String |
getDisplayName()
Returns the display name in the current Locale . |
String |
getDisplayName(Locale locale)
Returns the display name in the given Locale . |
Map<Locale,String> |
getDisplayNames()
Returns all the display names in Map where they are indexed by Locale . |
SortedSet<Locale> |
getLocales()
Returns the supported Locale s. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregisters a PropertyChangeListener . |
void |
setDisplayName(String displayName)
Sets the display name in Locale.ENGLISH . |
void |
setDisplayName(String displayName,
Locale locale)
Sets the display name in the given Locale . |
void |
setDisplayNames(Map<Locale,String> displayNames)
Sets a bag of display names for a number of Locale s. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultMutableDisplayable(@Nonnull String displayName)
Locale.ENGLISH
.
displayName
- the display namepublic DefaultMutableDisplayable(@Nonnull String displayName, @Nonnull 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 String getDisplayName()
Locale
.
getDisplayName
in interface Displayable
@Nonnull public String getDisplayName(@Nonnull Locale locale)
Locale
.
getDisplayName
in interface LocalizedDisplayable
locale
- the Locale
@Nonnull public SortedSet<Locale> getLocales()
Locale
s.
getLocales
in interface LocalizedDisplayable
Locale
s@Nonnull public Map<Locale,String> getDisplayNames()
Map
where they are indexed by Locale
.
getDisplayNames
in interface LocalizedDisplayable
public void setDisplayName(@Nonnull String displayName)
Locale.ENGLISH
.
setDisplayName
in interface MutableDisplayable
displayName
- the display namepublic void setDisplayName(@Nonnull String displayName, @Nonnull Locale locale)
Locale
.
setDisplayName
in interface MutableDisplayable
displayName
- the display namelocale
- the localepublic void setDisplayNames(@Nonnull Map<Locale,String> displayNames)
Locale
s.
setDisplayNames
in interface MutableDisplayable
displayNames
- the display namespublic void addPropertyChangeListener(@Nonnull PropertyChangeListener listener)
PropertyChangeListener
.
addPropertyChangeListener
in interface MutableDisplayable
listener
- the listenerpublic void removePropertyChangeListener(@Nonnull PropertyChangeListener listener)
PropertyChangeListener
.
removePropertyChangeListener
in interface MutableDisplayable
listener
- the listener@Nonnull public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |