Package adams.gui.flow.tabhandler
Class ParsedErrorHandler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.flow.tabhandler.AbstractTabHandler
-
- adams.gui.flow.tabhandler.ParsedErrorHandler
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Serializable
public class ParsedErrorHandler extends AbstractTabHandler
Manages the output from actor processors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParsedErrorHandler.ParseOutput
Container class.
-
Field Summary
Fields Modifier and Type Field Description protected List<ParsedErrorHandler.ParseOutput>
m_Outputs
the output.-
Fields inherited from class adams.gui.flow.tabhandler.AbstractTabHandler
m_Owner
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ParsedErrorHandler(FlowPanel owner)
Initializes the tab handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FlowPanel owner, String error)
Parses the error and adds the output component.void
cleanUp()
Cleans up data structures, frees up memory.void
display()
Gets called when the page changes.List<ParsedErrorHandler.ParseOutput>
getOutputs()
Returns the outputs.boolean
hasOutputs()
Returns whether any outputs are present.protected void
initialize()
Method for initializing member variables.void
remove(int index)
Removes the specified output.void
remove(Component comp)
Removes the specified output.protected void
update(boolean show)
Notifies theParsedErrorTab
instance of a change.-
Methods inherited from class adams.gui.flow.tabhandler.AbstractTabHandler
getEditor, getMultiPage, getOwner
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
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, toString, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Outputs
protected List<ParsedErrorHandler.ParseOutput> m_Outputs
the output.
-
-
Constructor Detail
-
ParsedErrorHandler
public ParsedErrorHandler(FlowPanel owner)
Initializes the tab handler- Parameters:
owner
- the owning panel
-
-
Method Detail
-
initialize
protected void initialize()
Method for initializing member variables.- Overrides:
initialize
in classAbstractTabHandler
-
add
public void add(FlowPanel owner, String error)
Parses the error and adds the output component.- Parameters:
owner
- the flow panel this error relates toerror
- the error
-
getOutputs
public List<ParsedErrorHandler.ParseOutput> getOutputs()
Returns the outputs.- Returns:
- the outputs
-
remove
public void remove(int index)
Removes the specified output.- Parameters:
index
- the index of the output to remove
-
remove
public void remove(Component comp)
Removes the specified output.- Parameters:
comp
- the component to remove
-
hasOutputs
public boolean hasOutputs()
Returns whether any outputs are present.- Returns:
- true if outputs avaialble
-
update
protected void update(boolean show)
Notifies theParsedErrorTab
instance of a change.- Parameters:
show
- whether to show the tab or leave as is
-
display
public void display()
Gets called when the page changes.- Specified by:
display
in classAbstractTabHandler
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceCleanUpHandler
- Specified by:
cleanUp
in classAbstractTabHandler
-
-