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
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 -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionViewHandler(JhoveWindow jhwin, App app, JhoveBase base) Creates a ViewHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidshow()voidvoidvoidshow(OutputHandler handler) Outputs information about the OutputHandler specified in the parameter.voidOutputs the information contained in a RepInfo object.voidComplete the output.voidDo 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 Details
-
ViewHandler
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:
showHeaderin interfaceOutputHandler- Specified by:
showHeaderin classHandlerBase
-
show
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
- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
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
-