|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gui.TableauFactory
ptolemy.vergil.toolbox.TextEditorTableauFactory
This class is an attribute that creates a text editor to edit a specified string attribute in the container of this attribute. It is similar to TextEditorConfigureFactory, but instead of opening when the actor is configured, it is opened when the user looks inside the actor.
TextEditorConfigureFactory,
Serialized Form
| Red (ptolemy) |
| Yellow (eal) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.kernel.util.NamedObj |
NamedObj.ContainedObjectsIterator |
| Field Summary | |
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, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
TextEditorTableauFactory(NamedObj container,
java.lang.String name)
Create a factory with the given name and container. |
|
| Method Summary | |
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. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
_getContainedObject, _propagateExistence, clone, getContainer, setContainer, setName |
| 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
| Constructor Detail |
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.| Method Detail |
public void clear()
clear in interface TextEditorFactory
public Tableau createTableau(Effigy effigy)
throws java.lang.Exception
createTableau in class TableauFactoryeffigy - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||