|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gui.EditorFactory
ptolemy.vergil.toolbox.TextEditorConfigureFactory
public class TextEditorConfigureFactory
If this class is contained by a actor, then double clicking on that actor will invoke a text editor that edits the value of a specified string attribute. The string attribute must be contained by the same container as this factory; its name is given by the attributeName attribute of this factory. The number of rows and columns displayed are given by the rowsDisplayed and columnsDisplayed parameters. The default is 80 columns and 40 rows.
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
,
Serialized Form
Red (ptolemy) |
Yellow (eal) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary | |
---|---|
private TextEditorForStringAttributes |
_editor
|
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. |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
TextEditorConfigureFactory(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name. |
Method Summary | |
---|---|
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. |
Methods inherited from class ptolemy.actor.gui.EditorFactory |
---|
createEditor, createEditor |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public StringAttribute attributeName
public Parameter columnsDisplayed
public Parameter rowsDisplayed
private TextEditorForStringAttributes _editor
Constructor Detail |
---|
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.Method Detail |
---|
public void clear()
clear
in interface TextEditorFactory
public void createEditor(NamedObj object, java.awt.Frame parent)
createEditor
in class EditorFactory
object
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |