Class SessionEditor

All Implemented Interfaces:
IExtendable, ClipboardOwner, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
CorpusTemplateEditor

public class SessionEditor extends ProjectFrame implements ClipboardOwner

Main UI for the application. This window provides the interface for creating and modifying Phon Sessions.

This window supports plug-ins. Plug-ins can provide custom EditorViews.

See Also:
  • Field Details

    • BACKUP_WHEN_SAVING

      public static final String BACKUP_WHEN_SAVING
  • Constructor Details

  • Method Details

    • getTitle

      public String getTitle()
      Description copied from class: CommonModuleFrame
      Overridden to provide consistent naming in all windows. Use setWindowName() to setup the custom name for the window.
      Overrides:
      getTitle in class CommonModuleFrame
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • getToolbar

      public SessionEditorToolbar getToolbar()
      Get the editor toolbar.
      Returns:
      toolbar
    • getStatusBar

      public SessionEditorStatusBar getStatusBar()
      Get the editor status bar
      Returns:
      statusBar
    • setJMenuBar

      public void setJMenuBar(JMenuBar menuBar)
      Setup editor window menu
      Overrides:
      setJMenuBar in class JFrame
      Parameters:
      menuBar -
    • setupMenu

      public void setupMenu(JMenuBar menuBar)
    • getDataModel

      public EditorDataModel getDataModel()
      Retrieve the data model
      Returns:
      the editor data model
    • getViewModel

      public EditorViewModel getViewModel()
      Retrieve the view model
      Returns:
      the editor view model
    • getEventManager

      public EditorEventManager getEventManager()
      Get the event manager
      Returns:
      the editor event model
    • getSelectionModel

      public EditorSelectionModel getSelectionModel()
      Get the selection model
      Returns:
      editor selection model
    • getMediaModel

      public SessionMediaModel getMediaModel()
      Get the media model
      Returns:
      session media model
    • getSession

      public Session getSession()
      Get session
      Returns:
      session
    • getCurrentRecordIndex

      public int getCurrentRecordIndex()
      Return the index of the current record.
      Returns:
      index of current record
    • setCurrentRecordIndex

      public void setCurrentRecordIndex(int index)
      Set the index of the current record.
      Throws:
      ArrayIndexOutOfBoundsException
    • currentRecord

      public Record currentRecord()
      Return the current record
      Returns:
      current record
    • getUndoSupport

      public SessionEditorUndoSupport getUndoSupport()
      Get undo support for the editor
      Returns:
      undo support
    • getUndoManager

      public UndoManager getUndoManager()
      Get undo manager for the editor
      Returns:
      undo manager
    • setModified

      public void setModified(boolean modified)
      Set the modified flag
      Overrides:
      setModified in class CommonModuleFrame
      Parameters:
      modified -
    • saveData

      public boolean saveData() throws IOException
      Description copied from class: CommonModuleFrame
      Save window changes
      Overrides:
      saveData in class CommonModuleFrame
      Throws:
      IOException
    • lostOwnership

      public void lostOwnership(Clipboard clipboard, Transferable contents)
      Specified by:
      lostOwnership in interface ClipboardOwner