Package org.esa.snap.ui.product
Class ProductSubsetDialog
- java.lang.Object
-
- org.esa.snap.ui.AbstractDialog
-
- org.esa.snap.ui.ModalDialog
-
- org.esa.snap.ui.product.ProductSubsetDialog
-
public class ProductSubsetDialog extends ModalDialog
A modal dialog used to specify data product subsets.
-
-
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
Constructors Constructor Description ProductSubsetDialog(Window window, Product product)
Constructs a new subset dialog.ProductSubsetDialog(Window window, Product product, double memWarnLimit)
Constructs a new subset dialog.ProductSubsetDialog(Window window, Product product, ProductSubsetDef productSubsetDef)
Constructs a new subset dialog.ProductSubsetDialog(Window window, Product product, ProductSubsetDef productSubsetDef, double memWarnLimit)
Constructs a new subset dialog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Product
getProduct()
ProductSubsetDef
getProductSubsetDef()
protected void
onCancel()
Called if the "Cancel" button has been clicked.protected void
onOK()
Called if the "OK" button has been clicked.-
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, onClose, onHelp, onNo, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, show, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInput
-
-
-
-
Constructor Detail
-
ProductSubsetDialog
public ProductSubsetDialog(Window window, Product product)
Constructs a new subset dialog.- Parameters:
window
- the parent windowproduct
- the product for which the subset is to be specified, must not benull
-
ProductSubsetDialog
public ProductSubsetDialog(Window window, Product product, double memWarnLimit)
Constructs a new subset dialog.- Parameters:
window
- the parent windowproduct
- the product for which the subset is to be specified, must not benull
memWarnLimit
- the warning limit in megabytes
-
ProductSubsetDialog
public ProductSubsetDialog(Window window, Product product, ProductSubsetDef productSubsetDef)
Constructs a new subset dialog.- Parameters:
window
- the parent windowproduct
- the product for which the subset is to be specified, must not benull
productSubsetDef
- the initial product subset definition, can benull
-
ProductSubsetDialog
public ProductSubsetDialog(Window window, Product product, ProductSubsetDef productSubsetDef, double memWarnLimit)
Constructs a new subset dialog.- Parameters:
window
- the parent windowproduct
- the product for which the subset is to be specified, must not benull
productSubsetDef
- the initial product subset definition, can benull
memWarnLimit
- the warning limit in megabytes
-
-
Method Detail
-
getProduct
public Product getProduct()
-
getProductSubsetDef
public ProductSubsetDef getProductSubsetDef()
-
onOK
protected void onOK()
Description copied from class:AbstractDialog
Called if the "OK" button has been clicked. The default implementation callsAbstractDialog.hide()
. Clients should override this method to implement meaningful behaviour.- Overrides:
onOK
in classAbstractDialog
-
onCancel
protected void onCancel()
Description copied from class:AbstractDialog
Called if the "Cancel" button has been clicked. The default implementation callsAbstractDialog.hide()
. Clients should override this method to implement meaningful behaviour.- Overrides:
onCancel
in classAbstractDialog
-
-