Class FileOrURLEditorFactory

  • All Implemented Interfaces:
    java.lang.Cloneable, Editable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class FileOrURLEditorFactory
    extends EditorFactory
    An editor factory for an attribute that has a fileOrURL parameter. The editor has two choices: the usual parameter editor and a file editor that edits the fileOrURL parameter.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Christopher Brooks, based on AnnotationEditorFactory by Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Method Detail

      • createEditor

        public void createEditor​(NamedObj object,
                                 java.awt.Frame parent)
        Create an editor for configuring the specified object.
        Specified by:
        createEditor in interface Editable
        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.
        Returns:
        A JPanel that is a text editor for editing the annotation text.