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 forCalendarPaneandDatePickerclasses.
-
Constructor Details
-
DefaultCalendarResources
public DefaultCalendarResources()Constructor.
-
-
Method Details
-
getResource
Description copied from interface:CalendarResourcesThis method is used to query tring resources forCalendarPaneandDatePickerclasses. Should not returnnull.- Specified by:
getResourcein interfaceCalendarResources- Parameters:
key- one of the keys defined byCalendarResourceslocale- aLocale- Returns:
- localized string resource for a given key
-