Package tethys.swing
Class DatablockDetectionsPanel
java.lang.Object
tethys.swing.TethysGUIPanel
tethys.swing.DatablockDetectionsPanel
- All Implemented Interfaces:
PamWorkWrapper<String>
,StreamTableObserver
,TethysStateObserver
public class DatablockDetectionsPanel
extends TethysGUIPanel
implements StreamTableObserver, PamWorkWrapper<String>
Table of Detections documents for a single PAMGuard datablock.
Generally, this should only have a smallish number of entries in it
so may not need too much real estate on the display.
- Author:
- dg50
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrunBackgroundTask
(PamWorker<String> pamWorker) Run the background task which is in it's own threadvoid
selectDataBlock
(PamDataBlock dataBlock) void
selectDataBlock
(PamDataBlock dataBlock, boolean always) update table for this datablockvoid
void
taskFinished
(String result) Called when the background task completes.void
updateState
(TethysState tethysState) Receive state updates when Tethys has done something (made a connection, moved some data, etc.)
Note that this is for RECEIVING state updates, not for sending them.Methods inherited from class tethys.swing.TethysGUIPanel
colourBackground, getErrorColour, getNormalColour, getTethysControl
-
Constructor Details
-
DatablockDetectionsPanel
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in classTethysGUIPanel
-
selectDataBlock
update table for this datablock- Parameters:
dataBlock
- datablockalways
- always update, even if datablock hasn't changed.
-
selectDataBlock
- Specified by:
selectDataBlock
in interfaceStreamTableObserver
-
taskFinished
Description copied from interface:PamWorkWrapper
Called when the background task completes.- Specified by:
taskFinished
in interfacePamWorkWrapper<String>
- Parameters:
result
- result returned by runBackgroundTask or null if an exception occurred.
-
runBackgroundTask
Description copied from interface:PamWorkWrapper
Run the background task which is in it's own thread- Specified by:
runBackgroundTask
in interfacePamWorkWrapper<String>
- Parameters:
pamWorker
- reference to the main worker manager. Make repeated calls to pamWorker.update to update progress in the dialog- Returns:
- the value which will be passed to taskFinished
-
updateState
Description copied from interface:TethysStateObserver
Receive state updates when Tethys has done something (made a connection, moved some data, etc.)
Note that this is for RECEIVING state updates, not for sending them. To avoid infinite notifications loops, use tethysControl.sendStateUpdate(TethysState) to send out state notifications.- Specified by:
updateState
in interfaceTethysStateObserver
- Overrides:
updateState
in classTethysGUIPanel
-
showPopupMenu
-