@OpenApiAll public class AbstractChoiceProperty extends Property
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 |
---|
AbstractChoiceProperty() |
AbstractChoiceProperty(java.lang.String id,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
Property |
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, createEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getClassType, getDescription, getDescriptionID, getGroup, getID, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, getValue, getValueStringRepresentation, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, setValue, toString
public AbstractChoiceProperty()
public AbstractChoiceProperty(java.lang.String id, @CheckForNull java.lang.Object value)
id
- 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 Property clone()
Property
public boolean isUndefinedStateAvailable()
public void setUndefinedStateAvailable(boolean undefinedStateAvailable)