Class CpmPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TabClosedListener, FileSelectorListener, TransportControlListener

See Also:
  • Field Details

  • Constructor Details

    • CpmPanel

      public CpmPanel()
  • Method Details

    • createFileMenuItems

      public List createFileMenuItems()
      Creates JMenuItems that should be added to the File menu
      Returns:
      a List of JMenuItems
    • createViewMenuItems

      public List createViewMenuItems()
      Creates JMenuItems that should be added to the View menu
      Returns:
      a List of JMenuItems
    • actionPerformed

      public void actionPerformed(ActionEvent ev)
      Specified by:
      actionPerformed in interface ActionListener
    • confirmExit

      public boolean confirmExit()
      Ask user to confirm exist. Return true if they confirm, false if not.
    • checkForOutOfSyncFiles

      public void checkForOutOfSyncFiles()
    • refreshOutOfSyncFiles

      public void refreshOutOfSyncFiles()
    • displayError

      public void displayError(String aErrorString)
      Displays an error message to the user.
      Parameters:
      aErrorString - error message to display
    • displayError

      public void displayError(Throwable aThrowable)
      Displays an error message to the user.
      Parameters:
      aThrowable - Throwable whose message is to be displayed.
    • fileSelected

      public boolean fileSelected(JComponent source, String fileString)
      Specified by:
      fileSelected in interface FileSelectorListener
    • tabClosed

      public void tabClosed(JTabbedPaneWithCloseIcons source, int tabPos)
      Specified by:
      tabClosed in interface TabClosedListener
      Parameters:
      source - the JTabbedPaneWithCloseIcons control sending this event
      tabPos - position of the tab that was closed
    • controlStarted

      public void controlStarted()
      Specified by:
      controlStarted in interface TransportControlListener
    • controlPaused

      public void controlPaused()
      Specified by:
      controlPaused in interface TransportControlListener
    • controlResumed

      public void controlResumed()
      Specified by:
      controlResumed in interface TransportControlListener
    • controlStopped

      public void controlStopped()
      Specified by:
      controlStopped in interface TransportControlListener
    • onCompletion

      public void onCompletion()
    • printStats

      public void printStats()