org.autoplot.bookmarks.DelayMenu

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.


calculateMenu

calculateMenu( javax.swing.JMenu menu, java.util.List bookmarks, java.awt.event.ActionListener a ) → void

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.

Parameters

menu - a JMenu
bookmarks - a java.util.List
a - an ActionListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]