@OpenApiAll public class LocaleProperty extends ChoiceProperty
java.util.Locale
value.LocaleDEFAULT_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.
|
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 in MagicDraw ResourceManager by current value.
|
getIndex, isAppendValue, setAppendValue, setChoice, setIndex, setValue, toStringclone, getChoice, isEditableValue, isUndefinedStateAvailable, isValuesTranslatable, setEditableValue, setUndefinedStateAvailable, setValuesTranslatable_isFrozen, _setFrozen, addPropertyChangeListener, addSource, addSources, areValuesEqual, createCellEditor, createEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getGroup, getID, getName, getNonEditableReason, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, getValue, getValueStringRepresentation, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedStatepublic 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 PropertyVisitorAcceptorgetClassType in class ChoicePropertyPropertyID.LOCALE_PROPERTYpublic void accept(PropertyVisitor v) throws java.lang.Exception
accept in interface PropertyVisitorAcceptoraccept in class ChoicePropertyv - the PropertyVisitor.java.lang.Exception