Class DefaultCalendarResources
java.lang.Object
com.michaelbaranov.microba.calendar.DefaultCalendarResources
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String key, Locale locale) This method is used to query tring resources forCalendarPane
andDatePicker
classes.
-
Constructor Details
-
DefaultCalendarResources
public DefaultCalendarResources()Constructor.
-
-
Method Details
-
getResource
Description copied from interface:CalendarResources
This method is used to query tring resources forCalendarPane
andDatePicker
classes. Should not returnnull
.- Specified by:
getResource
in interfaceCalendarResources
- Parameters:
key
- one of the keys defined byCalendarResources
locale
- aLocale
- Returns:
- localized string resource for a given key
-