|
org.openide.nodes 7.3.0 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Nodes API | |
---|---|
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 |
Added the class ChildFactory and the method Children.create(ChildFactory factory, boolean asynchronous) to the API. This simplifies creation of Node children which need to be computed on a background thread for performance reasons. Anyone wishing to do this can simply extend ChildFactory and pass that to Children.create() to automatically get a Node that will display a Please Wait child node when first expanded. A ChildFactory can either compute all child nodes, or batch them in multiple passes.
ChildFactory can also be used to implement synchronous children,
by setting the asynchronous
parameter passed to
Children.create()
to false. This could replace most
common usages of Children.Keys, and make it easy to switch to
asynchronous child computation if that is determined to be
necessary for performance reasons.
New method
CookieSet.createGeneric has been added. It allows to create
an instance of
CookieSet that can contain any object, not just
Cookies.
This addition change is accompanied with two additional changes:
CookieSet now implements
Lookup.Provider and thus has a method getLookup
to
allow queries for of its content.
Also there is a new method
assign(clazz, instances) that allows to add/remove
plain old java objects to the CookieSet
.
Adding a new constructors to BeanNode
, allowing
subclasses to pass context Lookup.
Adding possibility for AbstractNode
to use PNG files
as icons. Adding new final method
setIconBaseWithExtension(String baseExt)
which replaces the original method for manipulating icon base,
setIconBase(String)
.
The original (now deprecated) method stil works the same way,
using ".gif"
as extension
The original method setIconBase(String)
delegates
to the new one, using the default extension.
From this version, the FilterNode by default delegates all
getValue(String)
and setValue(String, Object)
calls the to the original node. Also, FilterNode now exports two
new constants, FilterNode.DELEGATE_SET_VALUE
and
FilterNode.DELEGATE_GET_VALUE
, which can be used to control
the delegation of the above mentioned methods.
|
|
Read more about the implementation in the answers to architecture questions.
|
org.openide.nodes 7.3.0 | |||||||||
PREV NEXT | FRAMES NO FRAMES |