com.michaelbaranov.microba.calendar
Class DefaultCalendarResources

java.lang.Object
  extended by com.michaelbaranov.microba.calendar.DefaultCalendarResources
All Implemented Interfaces:
CalendarResources

public class DefaultCalendarResources
extends java.lang.Object
implements CalendarResources

A very basic implementation of CalendarResources. Used by default by CalendarPane and DatePicker classes. The resources are loaded from 'DefaultCalendarResources.properties' file.

Author:
Michael Baranov

Field Summary
 
Fields inherited from interface com.michaelbaranov.microba.calendar.CalendarResources
KEY_NONE, KEY_TODAY
 
Constructor Summary
DefaultCalendarResources()
          Constructor.
 
Method Summary
 java.lang.String getResource(java.lang.String key, java.util.Locale locale)
          This method is used to query tring resources for CalendarPane and DatePicker classes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCalendarResources

public DefaultCalendarResources()
Constructor.

Method Detail

getResource

public java.lang.String getResource(java.lang.String key,
                                    java.util.Locale locale)
Description copied from interface: CalendarResources
This method is used to query tring resources for CalendarPane and DatePicker classes. Should not return null.

Specified by:
getResource in interface CalendarResources
Parameters:
key - one of the keys defined by CalendarResources
locale - a Locale
Returns:
localized string resource for a given key