public class ChoiceStyle extends ParameterEditorStyle
EditableChoiceStyle
,
EditorPaneFactory
,
ParameterEditorStyle
,
StringAttribute
Yellow (neuendor) |
Green (neuendor) |
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected boolean |
_isEditable
Whether or not the combobox is editable.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ChoiceStyle()
Construct an attribute in the default workspace with an empty string
as its name.
|
ChoiceStyle(NamedObj container,
java.lang.String name)
Construct an attribute with the specified container and name.
|
ChoiceStyle(Workspace workspace)
Construct an attribute in the given workspace with an empty string
as its name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptable(Settable param)
Return true if this style is acceptable for the given attribute.
|
void |
addEntry(PtolemyQuery query)
Create a new uneditable
combo box entry in the given query associated with the
attribute containing this style.
|
setContainer
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
protected boolean _isEditable
public ChoiceStyle()
public ChoiceStyle(Workspace workspace)
workspace
- The workspace that will contain the attribute
that is being constructed.public ChoiceStyle(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the attribute.IllegalActionException
- If the attribute is not of an
acceptable attribute for the container, or if the container
is not an instance of Settable.NameDuplicationException
- If the name coincides with
an attribute already in the container.public boolean acceptable(Settable param)
acceptable
in class ParameterEditorStyle
param
- The attribute that this annotates.public void addEntry(PtolemyQuery query) throws IllegalActionException
addEntry
in class ParameterEditorStyle
query
- The query into which to add the entry.IllegalActionException
- If the containing attribute
has a value that cannot be edited using this style.