public class GTGUIAction extends GUIAction
NamedObj.ContainedObjectsIterator
_momlSource, _momlText, _parsedObject, _parser
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
GTGUIAction(NamedObj container,
java.lang.String name)
Construct an item with the given name contained by the specified
entity.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_processUnselectedObjects(NamedObj model,
boolean ignore)
Mark the unselected objects in the given model to be ignored or not
ignored.
|
void |
perform(boolean parse)
React to this item being selected.
|
_parseSource, configure, getConfigureSource, getConfigureText, getFrame, getModel
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, 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
public GTGUIAction(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a
period.NameDuplicationException
- If the name coincides with
an attribute already in the container.public void perform(boolean parse)
<configure source="some_file.xml"> </configure>then the source is read and its contents are used as the moml text. The moml text can also be given directly:
<configure> <entity name="C" class="ptolemy.actor.lib.Const"> </entity> </configure>Depending on whether the parse parameter is true or false, the moml text may be parsed first or not. If it is parsed, the returned NamedObj is used to generate a new moml string to be applied to the model in the current tableau (the nearest tableau that contains this GUI property). If it is not parsed, then the moml text is directly applied to the model.
protected void _processUnselectedObjects(NamedObj model, boolean ignore) throws NameDuplicationException, IllegalActionException
model
- The model that contains the selected or unselected objects.ignore
- Whether the objects should be ignored.NameDuplicationException
- If instances of IgnoringAttribute
cannot be created for the objects.IllegalActionException
- If IgnoringAttribute exists and have the
same names.