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_Displaysthe 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 voidcleanUp()Cleans up data structures, frees up memory.voidclear()Removes all registered displays.voidderegister(GraphicalFlowExecutionListener listener)Deregisters a listener.voiddisplay()Gets called when the page changes.Set<GraphicalFlowExecutionListener>getDisplays()Returns all currently registered displays.booleanhasDisplays()Returns whether there are any registered displays open.protected voidinitialize()Method for initializing member variables.voidregister(GraphicalFlowExecutionListener listener)Registers a listener.protected voidupdate(boolean show)Notifies theGraphicalFlowExecutionListenersTabinstance 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:AbstractTabHandlerMethod for initializing member variables.- Overrides:
initializein classAbstractTabHandler
-
update
protected void update(boolean show)
Notifies theGraphicalFlowExecutionListenersTabinstance 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:
displayin classAbstractTabHandler
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUpin interfaceCleanUpHandler- Specified by:
cleanUpin classAbstractTabHandler
-
-