Package adams.gui.tools.previewbrowser
Class ReportHandler
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,ContentHandler,ObjectContentHandler,Serializable
public class ReportHandler extends AbstractObjectContentHandler
Displays report files (depends on selected reader): *
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING min-user-mode: Expert
-reader <adams.data.io.input.AbstractReportReader> (property: reader) The reader to use. default: adams.data.io.input.DefaultSimpleReportReader
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractReportReaderm_Readerthe reader to use.-
Fields inherited from class adams.gui.tools.previewbrowser.AbstractObjectContentHandler
m_ObjectHandlerMapping
-
Fields inherited from class adams.gui.tools.previewbrowser.AbstractContentHandler
m_Relation
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.gui.tools.previewbrowser.ContentHandler
MATCH_ALL
-
-
Constructor Summary
Constructors Constructor Description ReportHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(Class cls)Checks whether the class is handled by this content handler.PreviewPanelcreatePreview(File file)Creates the actual view.PreviewPanelcreatePreview(Object obj)Creates the actual preview.voiddefineOptions()Adds options to the internal list of options.protected AbstractReportReadergetDefaultReader()Returns the default reader.String[]getExtensions()Returns the list of extensions (without dot) that this handler can take care of.AbstractReportReadergetReader()Returns the reader in use.StringglobalInfo()Returns a string describing the object.StringreaderTipText()Returns the tip text for this property.voidsetReader(AbstractReportReader value)Sets the reader to use.-
Methods inherited from class adams.gui.tools.previewbrowser.AbstractObjectContentHandler
canHandle, checkObject, getObjectHandlers, getObjectHandlersFor, getObjectHandlersFor, getPreview, hasObjectHandler, hasObjectHandler, reusePreview
-
Methods inherited from class adams.gui.tools.previewbrowser.AbstractContentHandler
checkFile, getHandlers, getHandlersForFile, getHandlersForFile, getPreview, getRelation, hasHandler, hasHandler, reusePreview
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.gui.tools.previewbrowser.ContentHandler
getPreview, reusePreview
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Reader
protected AbstractReportReader m_Reader
the reader to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getExtensions
public String[] getExtensions()
Returns the list of extensions (without dot) that this handler can take care of.- Returns:
- the list of extensions (no dot)
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
getDefaultReader
protected AbstractReportReader getDefaultReader()
Returns the default reader.- Returns:
- the default reader
-
setReader
public void setReader(AbstractReportReader value)
Sets the reader to use.- Parameters:
value- the reader
-
getReader
public AbstractReportReader getReader()
Returns the reader in use.- Returns:
- the reader
-
readerTipText
public String readerTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
createPreview
public PreviewPanel createPreview(File file)
Creates the actual view.- Specified by:
createPreviewin interfaceContentHandler- Specified by:
createPreviewin classAbstractContentHandler- Parameters:
file- the file to create the view for- Returns:
- the view
-
canHandle
public boolean canHandle(Class cls)
Checks whether the class is handled by this content handler.- Parameters:
cls- the class to check- Returns:
- true if handled
-
createPreview
public PreviewPanel createPreview(Object obj)
Creates the actual preview.- Parameters:
obj- the object to create the view for- Returns:
- the preview
-
-