Class ViewHandler

java.lang.Object
edu.harvard.hul.ois.jhove.HandlerBase
edu.harvard.hul.ois.jhove.viewer.ViewHandler
All Implemented Interfaces:
OutputHandler

public class ViewHandler extends HandlerBase
This is an output handler which connects JHOVE output to the Swing interface of the viewer application. It is responsible for creating appropriate windows and making them known to (?).
Author:
Gary McGath
  • Constructor Details

    • ViewHandler

      public ViewHandler(JhoveWindow jhwin, App app, JhoveBase base)
      Creates a ViewHandler.
      Parameters:
      jhwin - The JhoveWindow which acts as the parent to output windows.
  • Method Details

    • showHeader

      public void showHeader()
      Do the initial output. This needs to set up the window.
      Specified by:
      showHeader in interface OutputHandler
      Specified by:
      showHeader in class HandlerBase
    • show

      public void show(RepInfo info)
      Outputs the information contained in a RepInfo object. showHeader must be called to set up the ViewWindow before this is called. I need to break out part of the ViewWindow code to here so it can produce the output for one file.
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show()
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(App app)
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • show

      public void show(Module module)
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase
    • showFooter

      public void showFooter()
      Complete the output. Does this have to do anything?
      Specified by:
      showFooter in interface OutputHandler
      Specified by:
      showFooter in class HandlerBase
    • show

      public void show(OutputHandler handler)
      Outputs information about the OutputHandler specified in the parameter. Since this never should occur in a normal list of handlers, it's unnecessary to do anything (I think).
      Specified by:
      show in interface OutputHandler
      Specified by:
      show in class HandlerBase