Create a list of keys which can be individually passed to
createNodes() to create child Nodes. Implementations of
this method should regularly check Thread.interrupted(), and
if it returns true (meaning the parent Node was collapsed or
destroyed), stop creating keys immediately and return
true. This method is guaranteed
not to be called on the
AWT event thread if this ChildFactory was passed to
Children.create() with the
asynchronous
parameter
set to true. If not, then no guarantees are made as to what
the calling thread is.
Returning false is tricky since there is no way to tell whether
the loop has been restarted except by examining what is already in
the list. As of 7.27 it is generally unnecessary since calls to
List#add(Object) will immediately display the new element
as well as checking for interruption.