Package adams.gui.flow.tabhandler
Class GraphicalActorProcessorHandler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.flow.tabhandler.AbstractTabHandler
-
- adams.gui.flow.tabhandler.GraphicalActorProcessorHandler
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Serializable
public class GraphicalActorProcessorHandler 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
GraphicalActorProcessorHandler.Output
Container class.
-
Field Summary
Fields Modifier and Type Field Description protected List<GraphicalActorProcessorHandler.Output>
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 GraphicalActorProcessorHandler(FlowPanel owner)
Initializes the tab handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String title, Component comp, String error)
Adds the output component.void
cleanUp()
Cleans up data structures, frees up memory.void
display()
Gets called when the page changes.List<GraphicalActorProcessorHandler.Output>
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 theGraphicalActorProcessorTab
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<GraphicalActorProcessorHandler.Output> m_Outputs
the output.
-
-
Constructor Detail
-
GraphicalActorProcessorHandler
public GraphicalActorProcessorHandler(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(String title, Component comp, String error)
Adds the output component.- Parameters:
title
- the titlecomp
- the graphical componenterror
- the optional error, can be null
-
getOutputs
public List<GraphicalActorProcessorHandler.Output> 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 theGraphicalActorProcessorTab
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
-
-