public class TextEditorTableauFactory extends TableauFactory implements TextEditorFactory
TextEditorConfigureFactory
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.
|
StringAttribute |
syntaxStyle
The style of the text to be edited.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TextEditorTableauFactory(NamedObj container,
java.lang.String name)
Create a factory with the given name and container.
|
Modifier and Type | Method and Description |
---|---|
protected TextEffigy |
_newTextEffigy(Effigy effigy,
java.lang.String text)
Create a text effigy to be contained by the specified host
effigy for the specified text.
|
void |
clear()
Remove any editor that may have been associated with this object
by a previous call to createEditor().
|
Tableau |
createTableau(Effigy effigy)
Create a tableau for the specified effigy.
|
java.lang.String |
getText()
Return the current text of the text editor.
|
static java.lang.String |
getTextToEdit(Attribute attributeToEdit)
Return the text value of the specified attribute.
|
_configureTableau, configure, getConfigureSource, getConfigureText
_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 StringAttribute attributeName
public Parameter columnsDisplayed
public Parameter rowsDisplayed
public StringAttribute syntaxStyle
public TextEditorTableauFactory(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name.IllegalActionException
- If the container is incompatible
with this attribute.NameDuplicationException
- If the name coincides with
an attribute already in the container.public void clear()
clear
in interface TextEditorFactory
public Tableau createTableau(Effigy effigy) throws java.lang.Exception
createTableau
in class TableauFactory
effigy
- The component effigy.java.lang.Exception
- If the factory should be able to create a
Tableau for the effigy, but something goes wrong.public java.lang.String getText()
getText
in interface TextEditorFactory
public static java.lang.String getTextToEdit(Attribute attributeToEdit)
attributeToEdit
- The attribute.protected TextEffigy _newTextEffigy(Effigy effigy, java.lang.String text) throws java.lang.Exception
effigy
- The host effigy.text
- The text.java.lang.Exception
- If the text effigy cannot be contained
by the specified container, or if the specified text cannot
be inserted into the document.