Class ViewWindow

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

    public class ViewWindow
    extends InfoWindow
    This is the main window for viewing the results of a file analysis. Multiple instances of InfoWindow are allowed; they are deleted when closed. The URI of the analyzed object is used as the window title. A JTree is used to display the information. The earlier version of this class displayed a single file. This version is controlled by a ViewHandler, which displays multiple files within a single window. There can still be multiple ViewWindows, but each will come from a separate operation. Dragging a directory to the main window will produce a single ViewWindow; dragging a group of files will produce multiple windows.
    See Also:
    Serialized Form
    • Constructor Detail

      • ViewWindow

        public ViewWindow​(App app,
                          JhoveBase base,
                          JhoveWindow jhwin)
        Constructor.
        Parameters:
        app - The associated App object.
        base - The JhoveBase object for the application.
        jhwin - The main JhoveWindow.
    • Method Detail

      • addRepInfo

        public void addRepInfo​(RepInfo info,
                               JhoveBase base)
        Appends the representation of a RepInfo object to the tree. The RepInfo object is saved into a list so that the window contents can be saved to a file later.
      • expandRows

        public void expandRows()
        Expands the tree appropriately when everything is build.
      • closeFromMenu

        protected void closeFromMenu()
        Invoked when the "Close" menu item is selected. Overrides the parent class's method to delete the window rather than hiding it.
        Overrides:
        closeFromMenu in class InfoWindow