You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenChemLib can now be accessed from any SwingJS Java or JavaScript application. GUI elements can work either embedded within a DIV on a page or as one or more pop-up frames.
There are almost certainly some bugs, as I only did a cursory test of file i/o. I did not test Executor action (which will not work as it stands in JavaScript, as it still uses Object.wait()/notify(). It would not be parallel in JavaScript anyway). Also, I did not adjust the ProgressBarUI to work in JavaScript as in Java, as that takes a bit more work. There are still some Thread.sleep() and Object.wait() calls. If needed, these could be easily enough replaced with javax.swing.Timer calls, I think.
Here is a full list of modified or added classes that make OpenChemLib compatible with SwingJS, allowing no differences in Java behavior, but automatic, simultaneous compilation into JavaScript by the java2script transpiler Eclipse CompilationParticipant plug-in.
These changes will be integrated into Jmol-SwingJS and JME-SwingJS.
OpenChemLib can now be accessed from any SwingJS Java or JavaScript application. GUI elements can work either embedded within a DIV on a page or as one or more pop-up frames.
There are almost certainly some bugs, as I only did a cursory test of file i/o. I did not test Executor action (which will not work as it stands in JavaScript, as it still uses Object.wait()/notify(). It would not be parallel in JavaScript anyway). Also, I did not adjust the ProgressBarUI to work in JavaScript as in Java, as that takes a bit more work. There are still some Thread.sleep() and Object.wait() calls. If needed, these could be easily enough replaced with javax.swing.Timer calls, I think.
Here is a full list of modified or added classes that make OpenChemLib compatible with SwingJS, allowing no differences in Java behavior, but automatic, simultaneous compilation into JavaScript by the java2script transpiler Eclipse CompilationParticipant plug-in.
These changes will be integrated into Jmol-SwingJS and JME-SwingJS.
New abstract classes
gui.editor.AsynchronousQueryBuilder
gui.SwingCanvas extends JPanel
OCL classes with tweaks
chem.Depictor2D
chem.io.CompoundFileHelper
gui.CompoundCollectionPane
gui.editor.AtomQueryFeatureDialogBuilder
gui.editor.BondQueryFeatureDialogBuilder
gui.editor.CustomAtomDialogBuilder
gui.editor.FXEditorDialog
gui.editor.GenericEditorArea
gui.editor.GenericEditorToolbar
gui.editor.TextDrawingObjectDialogBuilder
gui.FileHelper
gui.fx.FXDialog
gui.fx.FXUIHelper
gui.generic.GenericDialog
gui.generic.GenericUIHelper
gui.hidpi.HiDPIIconButton
gui.JAtomLabelDialog
gui.JChemistryView
gui.JDrawArea
gui.JEditableChemistryView
gui.JEditableStructureView
gui.JStructureView
gui.ScrollPaneAutoScrollerWhenDragging
gui.swing.SwingDialog
gui.swing.SwingUIHelper
Added classes from the SwingJS interface
javajs.async.Assets
javajs.async.Async
javajs.async.AsyncColorChooser
javajs.async.AsyncDialog
javajs.async.AsyncFileChooser
javajs.async.AsyncSwingWorker
javajs.async.SwingJSUtils
swingjs.api.JSUtilI
The text was updated successfully, but these errors were encountered: