Module org.jpo

Class MainWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainWindow extends ResizableJFrame
Main Window of the JPO application. It uses the Docking Frames framework to handle the internal windows.
See Also:
  • Constructor Details

  • Method Details

    • handleShowGroupRequest

      public void handleShowGroupRequest(ShowGroupRequest request)
      If a ShowGroupRequest is seen we will switch the collection tab to the foreground.
      Parameters:
      request - The ShowGroupRequest
    • handleShowQueryRequest

      public void handleShowQueryRequest(ShowQueryRequest request)
      If a ShowQueryRequest is seen we will switch the query tab to the foreground.
      Parameters:
      request - The query request
    • handleUpdateApplicationTitleRequest

      public void handleUpdateApplicationTitleRequest(UpdateApplicationTitleRequest request)
      When a UpdateApplicationTitleRequest is seen we will update the title of the JFrame. If the request is received on the EDT it is executed immediately else it is packed into a Runnable and SwingUtilities.invokeLater -ed.
      Parameters:
      request - The new Title Request
    • handleSaveDockablesPositionsRequest

      public void handleSaveDockablesPositionsRequest(SaveDockablesPositionsRequest request)
      Handle the SaveDockablesPositionsRequest by saving the dockable windows layout to the Preferences of the JVM
      Parameters:
      request - The SaveDockablesPositionsRequest
    • handleLoadDockablesPositionsRequest

      public void handleLoadDockablesPositionsRequest(LoadDockablesPositionsRequest request)
      Handle the LoadDockablesPositionsRequest by loading the saved dockable windows layout from the Preferences of the JVM
      Parameters:
      request - The LoadDockablesPositionsRequest
    • handleRestoreDockablesPositionsRequest

      public void handleRestoreDockablesPositionsRequest(RestoreDockablesPositionsRequest request)
      Handle the RestoreDockablesPositionsRequest by deploying the default grid to the content.
      Parameters:
      request - The RestoreDockablesPositionsRequest