ptolemy.actor.gui.style
Class FileChooserStyle
java.lang.Object
|
+--ptolemy.kernel.util.NamedObj
|
+--ptolemy.kernel.util.Attribute
|
+--ptolemy.actor.gui.style.ParameterEditorStyle
|
+--ptolemy.actor.gui.style.FileChooserStyle
- All Implemented Interfaces:
- java.lang.Cloneable, Debuggable, Nameable, java.io.Serializable
- public class FileChooserStyle
- extends ParameterEditorStyle
This attribute annotates user settable attributes to specify
an arbitrary type-in line style for configuring the containing attribute.
This style can be used with any Settable attribute.
- Since:
- Ptolemy II 2.0
- Version:
- $Id: FileChooserStyle.java,v 1.4 2002/02/21 20:16:07 cxh Exp $
- Author:
- Steve Neuendorffer
- See Also:
EditorPaneFactory,
ParameterEditorStyle, Serialized Form
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _debugging, _debugListeners, _uniqueNameIndex, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
|
Constructor Summary |
FileChooserStyle()
Construct an attribute in the default workspace with an empty string
as its name. |
FileChooserStyle(NamedObj container,
java.lang.String name)
Construct an attribute with the specified container and name. |
FileChooserStyle(Workspace workspace)
Construct an attribute in the given workspace with an empty string
as its name. |
|
Method Summary |
boolean |
acceptable(Settable param)
Return true if this style is acceptable for the given parameter. |
void |
addEntry(PtolemyQuery query)
Create a new type-in line
entry in the given query associated with the
attribute containing this style. |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _attachText, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _removeAttribute, _splitName, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, deepContains, depthInHierarchy, description, description, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getFullName, getMoMLInfo, getName, getName, removeChangeListener, removeDebugListener, requestChange, setDeferMoMLDefinitionTo, toplevel, toString, uniqueName, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileChooserStyle
public FileChooserStyle()
- Construct an attribute in the default workspace with an empty string
as its name.
The object is added to the directory of the workspace.
Increment the version number of the workspace.
FileChooserStyle
public FileChooserStyle(Workspace workspace)
- Construct an attribute in the given workspace with an empty string
as its name.
The object is added to the directory of the workspace.
Increment the version number of the workspace.
FileChooserStyle
public FileChooserStyle(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Construct an attribute with the specified container and name.
- Parameters:
container - The container.name - The name of the attribute.- Throws:
IllegalActionException - If the attribute is not of an
acceptable attribute for the container, or if the container
is not an instance of Settable.NameDuplicationException - If the name coincides with
an attribute already in the container.
acceptable
public boolean acceptable(Settable param)
- Return true if this style is acceptable for the given parameter.
- Overrides:
acceptable in class ParameterEditorStyle
- Parameters:
param - The attribute that this annotates.- Returns:
- True.
addEntry
public void addEntry(PtolemyQuery query)
- Create a new type-in line
entry in the given query associated with the
attribute containing this style. The name of the entry is
the name of the attribute. Attach the attribute to the created entry.
- Overrides:
addEntry in class ParameterEditorStyle
- Parameters:
query - The query into which to add the entry.