public class TextEditorConfigureFactory extends EditorFactory implements TextEditorFactory
This attribute is similar to TextEditorTableauFactory, except that it opens the text editor when the containing actor is configured (edit parameters), whereas TextEditorTableauFactory opens the text editor when the user looks inside.
TextEditorTableauFactory| Red (ptolemy) |
| Yellow (eal) |
NamedObj.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
StringAttribute |
attributeName
The name of the string attribute that is to be edited.
|
Parameter |
columnsDisplayed
The horizontal size of the display, in columns.
|
Parameter |
rowsDisplayed
The vertical size of the display, in rows.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS| Constructor and Description |
|---|
TextEditorConfigureFactory(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove any editor that may have been associated with this object
by a previous call to createEditor().
|
void |
createEditor(NamedObj object,
java.awt.Frame parent)
Create an editor for editing the string attribute specified
by the attributeName parameter.
|
java.lang.String |
getText()
Return the current text of the text editor.
|
createEditor, createEditor_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, workspacepublic StringAttribute attributeName
public Parameter columnsDisplayed
public Parameter rowsDisplayed
public TextEditorConfigureFactory(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - The container.name - The name of the factory.IllegalActionException - If the factory is not of an
acceptable attribute for the container.NameDuplicationException - If the name coincides with
an attribute already in the container.public void clear()
clear in interface TextEditorFactorypublic void createEditor(NamedObj object, java.awt.Frame parent)
createEditor in interface EditablecreateEditor in class EditorFactoryobject - The object to configure (which is expected to
be the same as the container of this attribute).parent - The frame with respect to which to define the
editor.public java.lang.String getText()
getText in interface TextEditorFactory