Package org.esa.snap.ui
Class NewProductDialog
- java.lang.Object
-
- org.esa.snap.ui.AbstractDialog
-
- org.esa.snap.ui.ModalDialog
-
- org.esa.snap.ui.NewProductDialog
-
public class NewProductDialog extends ModalDialog
-
-
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 NewProductDialog(Window parent, ProductNodeList<Product> sourceProducts, int selectedSourceIndex, boolean sourceProductOwner)
NewProductDialog(Window parent, ProductNodeList<Product> sourceProducts, int selectedSourceIndex, boolean sourceProductOwner, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getException()
Product
getResultProduct()
Product
getSourceProduct()
boolean
isSourceProductOwner()
protected void
onCancel()
Called if the "Cancel" button has been clicked.protected void
onOK()
Called if the "OK" button has been clicked.void
setSubsetDef(ProductSubsetDef subsetDef)
int
show()
Shows the dialog.protected boolean
verifyUserInput()
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, onClose, onHelp, onNo, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog
-
-
-
-
Constructor Detail
-
NewProductDialog
public NewProductDialog(Window parent, ProductNodeList<Product> sourceProducts, int selectedSourceIndex, boolean sourceProductOwner)
-
NewProductDialog
public NewProductDialog(Window parent, ProductNodeList<Product> sourceProducts, int selectedSourceIndex, boolean sourceProductOwner, String prefix)
-
-
Method Detail
-
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.
-
setSubsetDef
public void setSubsetDef(ProductSubsetDef subsetDef)
-
isSourceProductOwner
public boolean isSourceProductOwner()
-
getSourceProduct
public Product getSourceProduct()
-
getResultProduct
public Product getResultProduct()
-
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
-
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
-
getException
public Exception getException()
-
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.
-
-