org.esa.beam.visat.dialogs
Class ProductChooser

java.lang.Object
  extended by org.esa.beam.framework.ui.AbstractDialog
      extended by org.esa.beam.framework.ui.ModalDialog
          extended by org.esa.beam.visat.dialogs.ProductChooser

public class ProductChooser
extends ModalDialog


Field Summary
 
Fields inherited from class org.esa.beam.framework.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
 
Fields inherited from class org.esa.beam.framework.ui.AbstractDialog
ID_APPLY, ID_CANCEL, ID_CLOSE, ID_HELP, ID_NO, ID_OK, ID_OTHER, ID_RESET, ID_YES
 
Constructor Summary
ProductChooser(Window parent, String title, String helpID, Product[] allProducts, Product[] selectedProducts, String roiBandName)
           
 
Method Summary
 Product[] getSelectedProducts()
           
 boolean isTransferToAllBands()
           
 int show()
          Shows the dialog.
protected  boolean verifyUserInput()
          Called in order to perform input validation.
 
Methods inherited from class org.esa.beam.framework.ui.ModalDialog
cancelDialog, close
 
Methods inherited from class org.esa.beam.framework.ui.AbstractDialog
center, collectButtons, getButton, getButtonID, getButtonMask, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showInformationDialog, showWarningDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductChooser

public ProductChooser(Window parent,
                      String title,
                      String helpID,
                      Product[] allProducts,
                      Product[] selectedProducts,
                      String roiBandName)
Method Detail

show

public int show()
Description copied from class: AbstractDialog
Shows the dialog. Overrides shall call super.show() at the end.

Overrides:
show in class AbstractDialog
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 class AbstractDialog
Returns:
true if and only if the validation was successful.

getSelectedProducts

public Product[] getSelectedProducts()

isTransferToAllBands

public boolean isTransferToAllBands()


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.