See: Description
Package | Description |
---|---|
org.openide.cookies |
Cookies
are a design pattern used to add behaviors to existing data object
and nodes, or to separate implementation from the main object.
|
org.openide.nodes |
NetBeans uses
nodes
to represent JavaBeans or other property containers, formed into a
hierarchical tree.
|
org.openide.util.actions |
Children have a new createLazy(Callable<Children> factory) method, that can be used to provide a lazy children implementation. Callable.call() is called just when node's children are really needed.
IndexedNode has
new constructor that accepts Lookup
.
NodeOp.factory is new layer based factory method to allow declarative definition of a root node into the UI.
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 ChildFactory is no longer in use and should clean up any resources and detach any listeners it can.
ChildFactory.Detachable is an abstract class which adds addNotify() and removeNotify() methods to ChildFactory. addNotify() is called immediately before the first call to createKeys() after creation or a call to removeNotify().
Children.Keys
with lazy behavior can be created by using Children.Keys(boolean lazy)
.
Children.getNodesCount(boolean optimalResult)
can be
used instead of Children.getNodes(boolean optimalResult)
for children "initialization". While keeping same behavior as
Children.getNodes(boolean optimalResult)
for "default"
(non-lazy) implementation it allows full initialization without need to
create all nodes. Children.snapshot()
creates an immutable snapshot representing
the current view of the nodes in this children object. Such snapshots are available in
NodeMemberEvent and
NodeReorderEvent
via getSnapshot()
and provide information about state of nodes
in time when events were emited.
|
|
Read more about the implementation in the answers to architecture questions.
Built on November 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.