@OpenApiAll public class AbstractChoiceProperty extends Property
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, mValue, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
Constructor and Description |
---|
AbstractChoiceProperty() |
AbstractChoiceProperty(java.lang.String id,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
AbstractChoiceProperty |
clone()
Clones the property.
|
java.util.List |
getChoice()
Returns list of possible values.
|
boolean |
isEditableValue()
Returns editable flag.
|
boolean |
isUndefinedStateAvailable() |
boolean |
isValuesTranslatable() |
void |
setChoice(java.util.List val)
Sets the list of possible values for selecting.
|
void |
setEditableValue(boolean editable)
Sets the editable flag..
|
void |
setUndefinedStateAvailable(boolean undefinedStateAvailable) |
void |
setValuesTranslatable(boolean valuesTranslatable)
Set true, if values of this property must be translated with property's resource provider.
|
_isFrozen, _setFrozen, accept, addPropertyChangeListener, addSource, addSources, areValuesEqual, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getClassType, getDescription, getDescriptionID, getFirstElementFromSources, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSourceAsElement, getSources, getSourcesAsStream, getUndefinedString, getUndefinedString, getValue, getValueStringRepresentation, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, setValue, toString
public AbstractChoiceProperty()
public AbstractChoiceProperty(java.lang.String id, @CheckForNull java.lang.Object value)
public void setEditableValue(boolean editable)
editable
- the editable state of the property.public boolean isEditableValue()
public java.util.List getChoice()
public void setChoice(java.util.List val)
val
- a new possible values list.public boolean isValuesTranslatable()
public void setValuesTranslatable(boolean valuesTranslatable)
valuesTranslatable
- the new value of this flag.public AbstractChoiceProperty clone()
Property
public boolean isUndefinedStateAvailable()
public void setUndefinedStateAvailable(boolean undefinedStateAvailable)