Package org.esa.snap.ui
Class ModalDialog
java.lang.Object
org.esa.snap.ui.AbstractDialog
org.esa.snap.ui.ModalDialog
- Direct Known Subclasses:
AbstractAdapterEditor
,AngularViewChooser
,BandChooser
,CreateFilteredBandDialog
,ExportLegendImageAction.ImageLegendDialog
,FeatureCrsDialog
,ModuleSuiteDialog
,NewBandDialog
,NewProductDialog
,PlacemarkDialog
,ProductChooser
,ProductSubsetDialog
,ProjectionParamsDialog
,PropagateUncertaintyDialog
,SpectrumChooser
,SystemDependentVariableEditorDialog
,TemplateParameterEditorDialog
,ToolParameterEditorDialog
A helper class used to implement standard modal dialogs.
The dialog can be used directly or the class is used as base class in order to override the methods AbstractDialog.onOK()
,
AbstractDialog.onCancel()
etc. which are called if a user presses the corresponding button.
- Since:
- BEAM 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionModalDialog
(Window parent, String title, int buttonMask, Object[] otherButtons, String helpID) ModalDialog
(Window parent, String title, int buttonMask, String helpID) ModalDialog
(Window parent, String title, Object content, int buttonMask, Object[] otherButtons, String helpID) ModalDialog
(Window parent, String title, Object content, int buttonMask, String helpID) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This method is called, when the user clicks the "cancel" button or the "close" button of the top bar of the dialog window.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, show, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInput
-
Field Details
-
ID_OK_CANCEL
public static final int ID_OK_CANCEL- See Also:
-
ID_OK_CANCEL_HELP
public static final int ID_OK_CANCEL_HELP- See Also:
-
ID_OK_APPLY_CANCEL
public static final int ID_OK_APPLY_CANCEL- See Also:
-
ID_OK_APPLY_CANCEL_HELP
public static final int ID_OK_APPLY_CANCEL_HELP- See Also:
-
ID_YES_NO
public static final int ID_YES_NO- See Also:
-
ID_YES_NO_HELP
public static final int ID_YES_NO_HELP- See Also:
-
-
Constructor Details
-
ModalDialog
-
ModalDialog
-
ModalDialog
-
ModalDialog
-
-
Method Details
-
close
public void close()This method is called, when the user clicks the "cancel" button or the "close" button of the top bar of the dialog window. It can also be called directly. The method sets the button identifier toAbstractDialog.ID_CANCEL
and callsAbstractDialog.onCancel()
.- Specified by:
close
in classAbstractDialog
-