@OpenApiAll public class LocaleProperty extends ChoiceProperty
java.util.Locale
value.Locale
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, mAdditionalProperties, mDescriptionID, mEditable, mGroupName, mID, mResourceProvider, mSources, mSupport, mUndefinedState, mValue, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
Constructor and Description |
---|
LocaleProperty()
Default constructor.
|
LocaleProperty(java.lang.String id,
int index,
java.util.List choice)
The constructor.
|
LocaleProperty(java.lang.String id,
java.lang.Object value,
java.util.List choice)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(PropertyVisitor v)
Accepts the given visitor.
|
LocaleProperty |
clone()
Clones the property.
|
java.lang.String |
getClassType()
Returns property class type.
|
java.util.Locale |
getLocale()
Return the locale.
|
void |
setLocale(java.util.Locale locale)
Sets a new locale for property.
|
void |
updateLocaleByString(java.lang.String locale)
Update Locale By String
|
void |
updateLocaleByValue()
Updates locale by current value.
|
getIndex, isAppendValue, setAppendValue, setChoice, setIndex, setValue, toString
getChoice, isEditableValue, isUndefinedStateAvailable, isValuesTranslatable, setEditableValue, setUndefinedStateAvailable, setValuesTranslatable
_isFrozen, _setFrozen, addPropertyChangeListener, addSource, addSources, areValuesEqual, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, getValue, getValueStringRepresentation, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState
public LocaleProperty()
public LocaleProperty(java.lang.String id, java.lang.Object value, java.util.List choice)
id
- the ID of property.value
- the value of the property.choice
- the list of possible values.public LocaleProperty(java.lang.String id, int index, java.util.List choice)
id
- the ID of property.index
- the index in choice of selected value.choice
- the list of possible values.public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- a new locale.public void updateLocaleByValue()
public void updateLocaleByString(java.lang.String locale)
locale
- Locale String.public java.lang.String getClassType()
getClassType
in interface PropertyVisitorAcceptor
getClassType
in class ChoiceProperty
PropertyID.LOCALE_PROPERTY
public void accept(PropertyVisitor v) throws java.lang.Exception
accept
in interface PropertyVisitorAcceptor
accept
in class ChoiceProperty
v
- the PropertyVisitor.java.lang.Exception
public LocaleProperty clone()
Property
clone
in class ChoiceProperty