Package com.globalmentor.model
Class DefaultLocaleable
- java.lang.Object
-
- com.globalmentor.model.DefaultLocaleable
-
- All Implemented Interfaces:
Localeable
- Direct Known Subclasses:
LocaledText
public class DefaultLocaleable extends java.lang.Object implements Localeable
A default implementation of an object that keeps track of a locale.- Author:
- Garret Wilson
-
-
Field Summary
-
Fields inherited from interface com.globalmentor.model.Localeable
LOCALE_PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultLocaleable()
Default constructor.DefaultLocaleable(java.util.Locale locale)
Locale constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Locale
getLocale()
void
setLocale(java.util.Locale locale)
Sets the locale
-
-
-
Method Detail
-
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interfaceLocaleable
- Returns:
- The locale or
null
if no locale is indicated.
-
setLocale
public void setLocale(java.util.Locale locale)
Sets the locale- Specified by:
setLocale
in interfaceLocaleable
- Parameters:
locale
- The locale ornull
if no locale is indicated.
-
-