<h2>org.autoplot.bookmarks.DelayMenu</h2><p>JMenu that delays creating children until the folder is exposed. Otherwise we would have thousands of JMenuItems created at once, which showed to be slow.</p> <hr> <a name="calculateMenu-javax.swing.JMenu-java.util.List-java.awt.event.ActionListener"></a> <h2>calculateMenu</h2> calculateMenu( <a href='https://cottagesystems.com/~jbf/autoplot/doc/javax/swing/JMenu.html'>javax.swing.JMenu</a> menu, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> bookmarks, <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/event/ActionListener.html'>java.awt.event.ActionListener</a> a ) → void <p>calculate a menu from the bookmarks, where when a bookmark is selected, an ActionEvent is fired with the actionCommand equal to the URI. This was introduced to support invoking one of a set of scripts.</p> <h3>Parameters</h3> menu - a JMenu <br> bookmarks - a java.util.List <br> a - an ActionListener <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=calculateMenu&unscoped_q=calculateMenu">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/bookmarks/DelayMenu.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/autoplot/bookmarks/DelayMenu.html#calculateMenu-javax.swing.JMenu-java.util.List-java.awt.event.ActionListener">[view on old javadoc]</a> <br> <br>