Package adams.gui.flow.tabhandler
Class GraphicalFlowExecutionListenersHandler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.flow.tabhandler.AbstractTabHandler
-
- adams.gui.flow.tabhandler.GraphicalFlowExecutionListenersHandler
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Serializable
public class GraphicalFlowExecutionListenersHandler extends AbstractTabHandler
For managing registered flow execution listeners.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<GraphicalFlowExecutionListener>
m_Displays
the registered panels: class of panel - (name of panel - AbstractDisplay instance).-
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 GraphicalFlowExecutionListenersHandler(FlowPanel owner)
Initializes the tab handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Cleans up data structures, frees up memory.void
clear()
Removes all registered displays.void
deregister(GraphicalFlowExecutionListener listener)
Deregisters a listener.void
display()
Gets called when the page changes.Set<GraphicalFlowExecutionListener>
getDisplays()
Returns all currently registered displays.boolean
hasDisplays()
Returns whether there are any registered displays open.protected void
initialize()
Method for initializing member variables.void
register(GraphicalFlowExecutionListener listener)
Registers a listener.protected void
update(boolean show)
Notifies theGraphicalFlowExecutionListenersTab
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_Displays
protected Set<GraphicalFlowExecutionListener> m_Displays
the registered panels: class of panel - (name of panel - AbstractDisplay instance).
-
-
Constructor Detail
-
GraphicalFlowExecutionListenersHandler
public GraphicalFlowExecutionListenersHandler(FlowPanel owner)
Initializes the tab handler- Parameters:
owner
- the owning panel
-
-
Method Detail
-
initialize
protected void initialize()
Description copied from class:AbstractTabHandler
Method for initializing member variables.- Overrides:
initialize
in classAbstractTabHandler
-
update
protected void update(boolean show)
Notifies theGraphicalFlowExecutionListenersTab
instance of a change.- Parameters:
show
- whether to show the tab or leave as is
-
register
public void register(GraphicalFlowExecutionListener listener)
Registers a listener.- Parameters:
listener
- the listener to register
-
deregister
public void deregister(GraphicalFlowExecutionListener listener)
Deregisters a listener.- Parameters:
listener
- the listener to deregister
-
clear
public void clear()
Removes all registered displays.
-
getDisplays
public Set<GraphicalFlowExecutionListener> getDisplays()
Returns all currently registered displays.- Returns:
- the displays
-
hasDisplays
public boolean hasDisplays()
Returns whether there are any registered displays open.- Returns:
- true if at least one open
-
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
-
-