ptolemy.vergil.toolbox
Class VisibleParameterEditorFactory
java.lang.Object
ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gui.EditorFactory
ptolemy.vergil.toolbox.VisibleParameterEditorFactory
- All Implemented Interfaces:
- Changeable, java.lang.Cloneable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Nameable, java.io.Serializable
- public class VisibleParameterEditorFactory
- extends EditorFactory
If this class is contained by a settable attribute, then double
clicking on that attribute will invoke an editor for only that
parameter. This is contrary to the the double-click action for most
objects, which edits the parameters they contain.. This class is
contained by visible parameters in the Vergil utilities library.
- Since:
- Ptolemy II 2.0
- Version:
- $Id: VisibleParameterEditorFactory.java,v 1.12 2004/04/13 05:12:44 cxh Exp $
- Author:
- Steve Neuendorffer
- See Also:
- Serialized Form
- Accepted Rating:
- Proposed Rating:
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
|
Method Summary |
void |
createEditor(NamedObj object,
java.awt.Frame parent)
Create an editor for configuring the specified object. |
java.awt.Component |
createEditorPane()
Return a new widget for configuring the container. |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VisibleParameterEditorFactory
public VisibleParameterEditorFactory(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Construct a factory with the specified container and name.
- Parameters:
container - The container.name - The name of the factory.
- Throws:
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.
createEditor
public void createEditor(NamedObj object,
java.awt.Frame parent)
- Create an editor for configuring the specified object.
- Specified by:
createEditor in class EditorFactory
- Parameters:
object - The object to configure.parent - The parent window, or null if there is none.
createEditorPane
public java.awt.Component createEditorPane()
- Return a new widget for configuring the container. This
class returns a new PtolemyQuery that references the container,
assuming that that container is a settable attribute.
- Returns:
- A new widget for configuring the container.