Cookies are a design pattern used to add behaviors to existing data object and nodes, or to separate implementation from the main object.
NetBeans uses nodes to represent JavaBeans or other property containers, formed into a hierarchical tree.
received a bunch of static methods (
writeOnly to allow easy property creation with
Provider functional interfaces.
Sheet.Set set = ... SomeObject obj = getLookup().lookup(SomeObject.class); set.put(PropertySupport.readWrite("name", String.class, obj::getName, obj::setName)); set.put(PropertySupport.readOnly("size", Long.class, obj::getSize));
ChildFactory is useful for creating node children lazily on a background thread, and for simplifying working with Children.Keys. One oversight in the original API was providing for notification that the nodes created by the ChildFactory are no longer in use and should clean up any resources.
DestroyableNodesFactory is an abstract class which adds destroyNodes methods to ChildFactory.Detachable.
to allow convenient way of registering BeanInfo search path.
to allow convenient way of registering property editors.
ChildFactory.createKeysbetter supports incremental display
An implementation of
ChildFactory.createKeys may now
List.add a number of times and return true at the
end, while still displaying keys incrementally.
Read more about the implementation in the answers to architecture questions.