org.joda.property.type
Interface LocaleProperty
- All Superinterfaces:
- DataProperty, ModelElement, Property, java.io.Serializable
- All Known Implementing Classes:
- DefaultLocaleProperty
- public interface LocaleProperty
- extends DataProperty
Interface for Boolean properties.
- Author:
- Stephen Colebourne
Method Summary |
java.util.Locale |
get()
Get the property's value as a Locale. |
void |
set(java.lang.String language,
java.lang.String country)
Set the property's value to a specific language and country. |
java.util.Locale |
toLocale()
Get the property's value as a Locale. |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
get
public java.util.Locale get()
- Get the property's value as a Locale.
- Returns:
- the property value as a Locale
toLocale
public java.util.Locale toLocale()
- Get the property's value as a Locale.
- Returns:
- the property value as a Locale
set
public void set(java.lang.String language,
java.lang.String country)
- Set the property's value to a specific language and country.
- Parameters:
language
- the language to set the locale tocountry
- the country to set the locale to
Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.