Package jspecview.js2d
Class JsDialogManager
java.lang.Object
jspecview.dialog.DialogManager
jspecview.js2d.JsDialogManager
A DialogManager for JavaScript.
- Author:
- hansonr
-
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
actionPerformed
(String eventId) Jmol.Swing.click() callback (via SwingController)getDialogInput
(Object parentComponent, String phrase, String title, int msgType, Object icon, Object[] objects, String defaultStr) int[]
getLocationOnScreen
(Object component) int
getOptionFromDialog
(Object frame, String[] items, JSVPanel jsvp, String dialogName, String labelName) void
showMessage
(Object frame, String text, String title) void
showMessageDialog
(Object parentComponent, String msg, String title, int msgType) void
showProperties
(Object frame, Spectrum spectrum) Looks a lot like Swing, right? :)Methods inherited from class jspecview.dialog.DialogManager
fixTitle, getSelectorName, processClick, processTableEvent, processWindowClosing, registerDialog, registerSelector, set, showSource, showSourceErrors
-
Constructor Details
-
JsDialogManager
public JsDialogManager()
-
-
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
-
showMessageDialog
- Specified by:
showMessageDialog
in classDialogManager
-
getLocationOnScreen
- Specified by:
getLocationOnScreen
in classDialogManager
-
getOptionFromDialog
public int getOptionFromDialog(Object frame, String[] items, JSVPanel jsvp, String dialogName, String labelName) - Specified by:
getOptionFromDialog
in classDialogManager
-
showProperties
Looks a lot like Swing, right? :)- Specified by:
showProperties
in classDialogManager
-
showMessage
- Specified by:
showMessage
in classDialogManager
-
actionPerformed
Jmol.Swing.click() callback (via SwingController)- Parameters:
eventId
-
-