Package edu.harvard.hul.ois.jhove.viewer
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.harvard.hul.ois.jhove.HandlerBase
HandlerBase.SynchronizedDateFormat
-
-
Constructor Summary
Constructors Constructor Description ViewHandler(JhoveWindow jhwin, App app, JhoveBase base)Creates a ViewHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshow()voidshow(App app)voidshow(Module module)voidshow(OutputHandler handler)Outputs information about the OutputHandler specified in the parameter.voidshow(RepInfo info)Outputs the information contained in a RepInfo object.voidshowFooter()Complete the output.voidshowHeader()Do the initial output.-
Methods inherited from class edu.harvard.hul.ois.jhove.HandlerBase
analyze, applyDefaultParams, close, doctype, doctype, doubleArray, element, element, element, element, elementEnd, elementStart, elementStart, endDirectory, getDate, getEncoding, getIndent, getName, getNote, getRelease, getRights, getSpecification, getVendor, init, integerArray, integerArray, longArray, okToProcess, param, rationalArray, rationalArray10, reset, resetParams, setApp, setBase, setDefaultParams, setEncoding, setWriter, startDirectory, toDateTime, xmlDecl, xmlDecl
-
-
-
-
Constructor Detail
-
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 Detail
-
showHeader
public void showHeader()
Do the initial output. This needs to set up the window.- Specified by:
showHeaderin interfaceOutputHandler- Specified by:
showHeaderin classHandlerBase
-
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:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show()
- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(App app)
- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(Module module)
- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
showFooter
public void showFooter()
Complete the output. Does this have to do anything?- Specified by:
showFooterin interfaceOutputHandler- Specified by:
showFooterin classHandlerBase
-
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:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
-