Package org.cyclos.model.utils
Class LocalesData
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.LocalesData
-
- All Implemented Interfaces:
Serializable
public class LocalesData extends Bean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ListProperty<LocaleVO,LocalesData>ALLOWED_LOCALESstatic StringCLASS_NAMEstatic BasicProperty<LocaleVO,LocalesData>CURRENT_LOCALEstatic BasicProperty<LocaleVO,LocalesData>DEFAULT_LOCALE
-
Constructor Summary
Constructors Constructor Description LocalesData()LocalesData(Property<T,? super LocalesData> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()List<LocaleVO>getAllowedLocales()LocaleVOgetCurrentLocale()LocaleVOgetDefaultLocale()voidsetAllowedLocales(List<LocaleVO> allowedLocales)voidsetCurrentLocale(LocaleVO currentLocale)voidsetDefaultLocale(LocaleVO defaultLocale)-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
ALLOWED_LOCALES
public static final ListProperty<LocaleVO,LocalesData> ALLOWED_LOCALES
-
CURRENT_LOCALE
public static final BasicProperty<LocaleVO,LocalesData> CURRENT_LOCALE
-
DEFAULT_LOCALE
public static final BasicProperty<LocaleVO,LocalesData> DEFAULT_LOCALE
-
-
Constructor Detail
-
LocalesData
public LocalesData()
-
LocalesData
public LocalesData(Property<T,? super LocalesData> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
getCurrentLocale
public LocaleVO getCurrentLocale()
-
setCurrentLocale
public void setCurrentLocale(LocaleVO currentLocale)
-
getDefaultLocale
public LocaleVO getDefaultLocale()
-
setDefaultLocale
public void setDefaultLocale(LocaleVO defaultLocale)
-
-