org.esa.beam.framework.gpf.ui
Class DefaultSingleTargetProductDialog

java.lang.Object
  extended by org.esa.beam.framework.ui.AbstractDialog
      extended by org.esa.beam.framework.ui.ModelessDialog
          extended by org.esa.beam.framework.gpf.ui.SingleTargetProductDialog
              extended by org.esa.beam.framework.gpf.ui.DefaultSingleTargetProductDialog

public class DefaultSingleTargetProductDialog
extends SingleTargetProductDialog

WARNING: This class belongs to a preliminary API and may change in future releases.

Version:
$Revision: 8343 $ $Date: 2010-02-10 18:31:57 +0100 (Mi, 10 Feb 2010) $
Author:
Norman Fomferra

Field Summary
 
Fields inherited from class org.esa.beam.framework.ui.ModelessDialog
ID_APPLY_CLOSE, ID_APPLY_CLOSE_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
DefaultSingleTargetProductDialog(String operatorName, AppContext appContext, String title, String helpID)
           
 
Method Summary
static SingleTargetProductDialog createDefaultDialog(String operatorName, AppContext appContext)
           
protected  Product createTargetProduct()
          Creates the desired target product.
 com.bc.ceres.swing.binding.BindingContext getBindingContext()
           
 String getTargetProductNameSuffix()
           
 void hide()
          Hides the dialog.
 void setTargetProductNameSuffix(String suffix)
           
 int show()
          Shows the dialog.
 
Methods inherited from class org.esa.beam.framework.gpf.ui.SingleTargetProductDialog
getAppContext, getTargetProductSelector, handleInitialisationError, handleProcessingError, onApply, showSuppressibleInformationDialog
 
Methods inherited from class org.esa.beam.framework.ui.ModelessDialog
close
 
Methods inherited from class org.esa.beam.framework.ui.AbstractDialog
center, collectButtons, getButton, getButtonID, getButtonMask, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, onCancel, onClose, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showInformationDialog, showWarningDialog, verifyUserInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSingleTargetProductDialog

public DefaultSingleTargetProductDialog(String operatorName,
                                        AppContext appContext,
                                        String title,
                                        String helpID)
Method Detail

createDefaultDialog

public static SingleTargetProductDialog createDefaultDialog(String operatorName,
                                                            AppContext appContext)

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.

hide

public void hide()
Description copied from class: AbstractDialog
Hides the dialog. Overrides shall call super.hide() at the end. This method does nothing else than hiding the underlying Swing dialog.

Overrides:
hide in class AbstractDialog
See Also:
AbstractDialog.getJDialog()

createTargetProduct

protected Product createTargetProduct()
                               throws Exception
Description copied from class: SingleTargetProductDialog
Creates the desired target product. Usually, this method will be implemented by invoking one of the multiple GPF createProduct methods.

The method should throw a OperatorException in order to signal "nominal" processing errors, other exeption types are treated as internal errors.

Specified by:
createTargetProduct in class SingleTargetProductDialog
Returns:
The target product.
Throws:
Exception - if an error occurs, an OperatorException is signaling "nominal" processing errors.

getTargetProductNameSuffix

public String getTargetProductNameSuffix()

setTargetProductNameSuffix

public void setTargetProductNameSuffix(String suffix)

getBindingContext

public com.bc.ceres.swing.binding.BindingContext getBindingContext()


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