Package tethys.swing
Class TethysExportPanel
java.lang.Object
tethys.swing.TethysGUIPanel
tethys.swing.TethysExportPanel
- All Implemented Interfaces:
TethysStateObserver
- Direct Known Subclasses:
CalibrationsMainPanel
,DatablockSynchPanel
,DeploymentsPanel
Common panel used by Calibrations, Deployments and Detections to show an export button and other
common components, such as help, a table, etc..
- Author:
- dg50
-
Constructor Summary
ConstructorsConstructorDescriptionTethysExportPanel
(TethysControl tethysControl, CollectionHandler collectionHandler, boolean showOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disableExport
(String disabledTip) Disable the export button and set the tooltip.void
enableExport
(boolean enable) Enable or disable export button, leaving tool tips aloneprotected abstract void
Export button has been pressed.protected void
Show the help.boolean
protected abstract void
Options button has been pressed.void
setHelpPoint
(String helpPoint) void
setShowOptions
(boolean showOptions) Methods inherited from class tethys.swing.TethysGUIPanel
colourBackground, getErrorColour, getNormalColour, getTethysControl, updateState
-
Constructor Details
-
TethysExportPanel
public TethysExportPanel(TethysControl tethysControl, CollectionHandler collectionHandler, boolean showOptions)
-
-
Method Details
-
helpButtonPressed
Show the help.- Parameters:
e
-
-
exportButtonPressed
Export button has been pressed.- Parameters:
e
-
-
optionsButtonPressed
Options button has been pressed.- Parameters:
e
-
-
getComponent
- Specified by:
getComponent
in classTethysGUIPanel
-
getHelpPoint
- Returns:
- the helpPoint
-
setHelpPoint
- Parameters:
helpPoint
- the helpPoint to set
-
isShowOptions
public boolean isShowOptions()- Returns:
- the showOptions
-
setShowOptions
public void setShowOptions(boolean showOptions) - Parameters:
showOptions
- the showOptions to set
-
getExportButton
- Returns:
- the exportButton
-
getOptionsButton
- Returns:
- the optionsButton
-
getHelpButton
- Returns:
- the helpButton
-
getMainPanel
- Returns:
- the mainPanel
-
getNorthPanel
- Returns:
- the northPanel
-
getMessage
- Returns:
- the message
-
getCollectionHandler
- Returns:
- the collectionHandler
-
enableExport
public void enableExport(boolean enable) Enable or disable export button, leaving tool tips alone- Parameters:
enable
-
-
disableExport
Disable the export button and set the tooltip.- Parameters:
disabledTip
-
-