Package org.esa.snap.ui.loading
Class AbstractModalDialog
java.lang.Object
org.esa.snap.ui.AbstractDialog
org.esa.snap.ui.loading.AbstractModalDialog
- All Implemented Interfaces:
MessageDialog
- Direct Known Subclasses:
ProductAdvancedDialog
Created by jcoravu on 18/12/2018.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractModalDialog(Window parent, String title, boolean isModal, String helpID) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddComponentToAllwaysEnabledList(JComponent component) protected abstract JPanelbuildButtonsPanel(ActionListener cancelActionListener) protected final JPanelbuildButtonsPanel(String finishButtonText, ActionListener finishActionListener, String cancelButtonText, ActionListener cancelActionListener) protected abstract JPanelbuildContentPanel(int gapBetweenColumns, int gapBetweenRows) protected final Insetsprotected final Insetsprotected BorderbuildDialogBorder(int margins) protected final JButtonbuildDialogButton(String buttonText) voidclose()This method is called, when the user clicks the close button of the dialog's top window bar.protected static voidcomputePanelFirstColumn(JPanel contentPanel) protected intprotected intprotected intprotected intprotected final LoadingIndicatorprotected final intprotected voidprotected voidregisterEscapeKey(ActionListener cancelActionListener) protected voidsetEnabledComponentsWhileLoading(boolean enabled) final intshow()Shows the dialog.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, setResizable, setTitle, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.esa.snap.ui.loading.MessageDialog
showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog
-
Constructor Details
-
AbstractModalDialog
-
-
Method Details
-
buildContentPanel
-
buildButtonsPanel
-
close
public void close()Description copied from class:AbstractDialogThis method is called, when the user clicks the close button of the dialog's top window bar. It can also be called directly. Override to implement the dialog's default close behaviour.- Specified by:
closein interfaceMessageDialog- Specified by:
closein classAbstractDialog
-
show
public final int show()Description copied from class:AbstractDialogShows the dialog. Overrides shall callsuper.show()at the end.- Overrides:
showin classAbstractDialog- Returns:
- the identifier of the last button pressed or zero if this is a modeless dialog.
-
getDefaultGapBetweenContentAndButtonPanels
protected int getDefaultGapBetweenContentAndButtonPanels() -
getDefaultContentPanelMargins
protected int getDefaultContentPanelMargins() -
getDefaultGapBetweenRows
protected int getDefaultGapBetweenRows() -
getDefaultGapBetweenColumns
protected int getDefaultGapBetweenColumns() -
buildDefaultTextFieldMargins
-
buildDefaultListItemMargins
-
addComponentToAllwaysEnabledList
-
buildButtonsPanel
protected final JPanel buildButtonsPanel(String finishButtonText, ActionListener finishActionListener, String cancelButtonText, ActionListener cancelActionListener) -
setEnabledComponentsWhileLoading
protected void setEnabledComponentsWhileLoading(boolean enabled) -
getLoadingIndicator
-
getNewCurrentThreadId
protected final int getNewCurrentThreadId() -
onAboutToShow
protected void onAboutToShow() -
buildDialogBorder
-
registerEscapeKey
-
buildDialogButton
-
computePanelFirstColumn
-