Package org.esa.snap.ui.product
Class BandChooser
java.lang.Object
org.esa.snap.ui.AbstractDialog
org.esa.snap.ui.ModalDialog
org.esa.snap.ui.product.BandChooser
- All Implemented Interfaces:
LoadSaveRasterDataNodesConfigurationsComponent
public class BandChooser
extends ModalDialog
implements LoadSaveRasterDataNodesConfigurationsComponent
A dialog which lets the user select from a product's bands and tie-point grids.
-
Field Summary
Fields inherited from class org.esa.snap.ui.ModalDialog
ID_OK_APPLY_CANCEL, ID_OK_APPLY_CANCEL_HELP, ID_OK_CANCEL, ID_OK_CANCEL_HELP, ID_YES_NO, ID_YES_NO_HELP
-
Constructor Summary
ConstructorsConstructorDescriptionBandChooser
(Window parent, String title, String helpID, boolean selectAtLeastOneBand, Band[] allBands, Band[] selectedBands, TiePointGrid[] allTiePointGrids, TiePointGrid[] selectedTiePointGrids, boolean addLoadSaveConfigurationButtons) BandChooser
(Window parent, String title, String helpID, boolean selectAtLeastOneBand, Band[] selectedBands, TiePointGrid[] selectedTiePointGrids, Product product, boolean addLoadSaveConfigurationButtons) BandChooser
(Window parent, String title, String helpID, Band[] allBands, Band[] selectedBands, boolean addLoadSaveConfigurationButtons) BandChooser
(Window parent, String title, String helpID, Band[] allBands, Band[] selectedBands, eu.esa.snap.core.datamodel.group.BandGroup autoGrouping, boolean addLoadSaveConfigurationButtons) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Band[]
void
setReadRasterDataNodeNames
(String[] readRasterDataNodeNames) int
show()
Shows the dialog.protected boolean
Called in order to perform input validation.Methods inherited from class org.esa.snap.ui.ModalDialog
close
Methods inherited from class org.esa.snap.ui.AbstractDialog
center, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.esa.snap.ui.product.LoadSaveRasterDataNodesConfigurationsComponent
getParent
-
Constructor Details
-
BandChooser
-
BandChooser
-
BandChooser
public BandChooser(Window parent, String title, String helpID, boolean selectAtLeastOneBand, Band[] allBands, Band[] selectedBands, TiePointGrid[] allTiePointGrids, TiePointGrid[] selectedTiePointGrids, boolean addLoadSaveConfigurationButtons) -
BandChooser
-
-
Method Details
-
show
public int show()Description copied from class:AbstractDialog
Shows the dialog. Overrides shall callsuper.show()
at the end.- Overrides:
show
in classAbstractDialog
- Returns:
- the identifier of the last button pressed or zero if this is a modeless dialog.
-
verifyUserInput
protected boolean verifyUserInput()Description copied from class:AbstractDialog
Called in order to perform input validation.- Overrides:
verifyUserInput
in classAbstractDialog
- Returns:
true
if and only if the validation was successful.
-
getSelectedBands
-
getSelectedTiePointGrids
-
setReadRasterDataNodeNames
- Specified by:
setReadRasterDataNodeNames
in interfaceLoadSaveRasterDataNodesConfigurationsComponent
-
getRasterDataNodeNamesToWrite
- Specified by:
getRasterDataNodeNamesToWrite
in interfaceLoadSaveRasterDataNodesConfigurationsComponent
-