Class CpmPanel

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

The Class CpmPanel.
See Also:
  • Field Details

  • Constructor Details

    • CpmPanel

      public CpmPanel()
      Instantiates a new cpm panel.
  • 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.
      Returns:
      true, if successful
    • checkForOutOfSyncFiles

      public void checkForOutOfSyncFiles()
      Check for out of sync files.
    • refreshOutOfSyncFiles

      public void refreshOutOfSyncFiles()
      Refresh out of sync files.
    • 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)
      Description copied from interface: FileSelectorListener
      File selected.
      Specified by:
      fileSelected in interface FileSelectorListener
      Parameters:
      source - the source
      fileString - the file string
      Returns:
      true, if successful
    • tabClosed

      public void tabClosed(JTabbedPaneWithCloseIcons source, int tabPos)
      Description copied from interface: TabClosedListener
      Tab closed.
      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()
      Description copied from interface: TransportControlListener
      Control started.
      Specified by:
      controlStarted in interface TransportControlListener
    • controlPaused

      public void controlPaused()
      Description copied from interface: TransportControlListener
      Control paused.
      Specified by:
      controlPaused in interface TransportControlListener
    • controlResumed

      public void controlResumed()
      Description copied from interface: TransportControlListener
      Control resumed.
      Specified by:
      controlResumed in interface TransportControlListener
    • controlStopped

      public void controlStopped()
      Description copied from interface: TransportControlListener
      Control stopped.
      Specified by:
      controlStopped in interface TransportControlListener
    • onCompletion

      public void onCompletion()
      On completion.
    • printStats

      public void printStats()
      Prints the stats.