it.tidalwave.util
Class DefaultDisplayable

Package class diagram package DefaultDisplayable
java.lang.Object
  extended by it.tidalwave.util.DefaultDisplayable
All Implemented Interfaces:
Displayable, java.io.Serializable

public class DefaultDisplayable
extends java.lang.Object
implements Displayable, java.io.Serializable

Version:
$Id: DefaultDisplayable.java,v 1fac844c8d8a 2010/03/21 17:00:04 fabrizio $
Author:
Fabrizio Giudici
See Also:
Serialized Form
Status: stable API

Field Summary
 
Fields inherited from interface it.tidalwave.util.Displayable
Displayable
 
Constructor Summary
DefaultDisplayable(java.lang.String displayName, java.lang.String toStringName)
           
 
Method Summary
 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()
           
 java.util.SortedSet<java.util.Locale> getLocales()
          Returns the available Locales.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDisplayable

public DefaultDisplayable(@Nonnull
                          java.lang.String displayName,
                          @Nonnull
                          java.lang.String toStringName)
Method Detail

getDisplayName

@Nonnull
public java.lang.String getDisplayName()
Description copied from interface: Displayable
Returns the display name in the current Locale.

Specified by:
getDisplayName in interface Displayable

getDisplayName

@Nonnull
public java.lang.String getDisplayName(@Nonnull
                                               java.util.Locale locale)
Description copied from interface: Displayable
Returns the display name in the given Locale.

Specified by:
getDisplayName in interface Displayable
Parameters:
locale - the Locale
Returns:
the display name

getLocales

@Nonnull
public java.util.SortedSet<java.util.Locale> getLocales()
Description copied from interface: Displayable
Returns the available Locales.

Specified by:
getLocales in interface Displayable
Returns:
the available Locales

getDisplayNames

@Nonnull
public java.util.Map<java.util.Locale,java.lang.String> getDisplayNames()
Specified by:
getDisplayNames in interface Displayable

toString

@Nonnull
public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2010 Tidalwave s.a.s.. All Rights Reserved.