Package jspecview.java
Class AwtDialogManager
java.lang.Object
jspecview.dialog.DialogManager
jspecview.java.AwtDialogManager
- All Implemented Interfaces:
ActionListener
,FocusListener
,WindowListener
,EventListener
,ListSelectionListener
public class AwtDialogManager
extends DialogManager
implements ListSelectionListener, WindowListener, ActionListener, FocusListener
just a class I made to separate the construction of the AnnotationDialogs
from their use
- Author:
- Bob Hanson hansonr@stolaf.edu
-
Field Summary
Fields inherited from class jspecview.dialog.DialogManager
ERROR_MESSAGE, htDialogs, INFORMATION_MESSAGE, PLAIN_MESSAGE, QUESTION_MESSAGE, vwr, WARNING_MESSAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
ActionListener callbackvoid
void
getDialogInput
(Object parentComponent, String phrase, String title, int msgType, Object icon, Object[] objects, String defaultStr) int[]
getLocationOnScreen
(Object component) int
void
showMessage
(Object frame, String text, String title) void
showMessageDialog
(Object parentComponent, String msg, String title, int msgType) void
showProperties
(Object frame, Spectrum spectrum) void
ListSelectionListener callbackvoid
windowActivated
(WindowEvent arg0) void
windowClosed
(WindowEvent arg0) void
WindowListener callbackvoid
windowDeactivated
(WindowEvent arg0) void
windowDeiconified
(WindowEvent arg0) void
windowIconified
(WindowEvent arg0) void
windowOpened
(WindowEvent arg0) Methods inherited from class jspecview.dialog.DialogManager
fixTitle, getSelectorName, processClick, processTableEvent, processWindowClosing, registerDialog, registerSelector, set, showSource, showSourceErrors
-
Constructor Details
-
AwtDialogManager
public AwtDialogManager()
-
-
Method Details
-
getDialog
- Specified by:
getDialog
in classDialogManager
-
getDialogInput
public String getDialogInput(Object parentComponent, String phrase, String title, int msgType, Object icon, Object[] objects, String defaultStr) - Specified by:
getDialogInput
in classDialogManager
-
getOptionFromDialog
public int getOptionFromDialog(Object frame, String[] items, JSVPanel jsvp, String title, String label) - Specified by:
getOptionFromDialog
in classDialogManager
-
getLocationOnScreen
- Specified by:
getLocationOnScreen
in classDialogManager
-
showMessageDialog
- Specified by:
showMessageDialog
in classDialogManager
-
showProperties
- Specified by:
showProperties
in classDialogManager
-
showMessage
- Specified by:
showMessage
in classDialogManager
-
valueChanged
ListSelectionListener callback- Specified by:
valueChanged
in interfaceListSelectionListener
-
actionPerformed
ActionListener callback- Specified by:
actionPerformed
in interfaceActionListener
-
focusGained
- Specified by:
focusGained
in interfaceFocusListener
-
windowClosing
WindowListener callback- Specified by:
windowClosing
in interfaceWindowListener
-
windowActivated
- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
- Specified by:
windowClosed
in interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
- Specified by:
windowOpened
in interfaceWindowListener
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-