it.tidalwave.util
Interface Displayable

Package class diagram package Displayable
All Known Subinterfaces:
MutableDisplayable
All Known Implementing Classes:
DefaultDisplayable, DefaultMutableDisplayable

public interface Displayable

This interface defines the behavior of objects that can display their names possibly according to the current Locale.

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

Field Summary
static java.lang.Class<Displayable> Displayable
           
 
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.
 

Field Detail

Displayable

static final java.lang.Class<Displayable> Displayable
Method Detail

getDisplayName

@Nonnull
java.lang.String getDisplayName()
Returns the display name in the current Locale.


getDisplayName

@Nonnull
java.lang.String getDisplayName(@Nonnull
                                        java.util.Locale locale)
Returns the display name in the given Locale.

Parameters:
locale - the Locale
Returns:
the display name

getDisplayNames

@Nonnull
java.util.Map<java.util.Locale,java.lang.String> getDisplayNames()

getLocales

@Nonnull
java.util.SortedSet<java.util.Locale> getLocales()
Returns the available Locales.

Returns:
the available Locales


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