« Return to Thread: Are there any disadvantages of using the Nodes API for the presentation layer?

Are there any disadvantages of using the Nodes API for the presentation layer?

by erisch :: Rate this Message:

Reply to Author | View in Thread

Hi guys,

I've got some new questions as my current application evolves :)

What do you think: Are there any disadvantages if you build the
presentation layer of an application around the Nodes API? I've managed
to get the basics and underlying data model of my application to work
(more or less) seamingless with the NetBeans framework. And now I'm
about to create the presentation layer in all its colored glory :-) But
I have to make some decisions how to proceed with the development of
this application. In particular I'm interested in your thoughts about
the Nodes API and how it can be used to build the presentation layer of
an application.

My application operates on a data structure which is slightly complex
but a perfect hierarchical tree structure. From this perspective it
seems to be very reasonable to use the Nodes API to create the GUI for
my application. Moreover it would be very helpful to reuse things like
the properties or explorer view for parts of these data. One of my "main
views" should consist of a table view which should also provide
individual table cell renderes. Without a deeper understanding of the
NetBeans platform it's really hard to decide whether it makes sense to
build a hierarchy of nodes which represents my data model or to go for
plain Swing data models and use just Swing components to present the
data to the user.

What are your experiences with this? Is it worth the work to recreate a
data structure with "Nodes" and build the presentation layer on this? Or
is the Nodes API too limited if you want to use advanced features like
table cell renderers? From what I read it should be no big deal to use
FilterNodes for example if I have to represent different parts of the
data differently, but I'm not sure at all... Really sorry for asking all
these stupid questions, but at the beginning it really takes some effort
to get the "big picture" of what the NetBeans platform can do and can't
do ;)

Thanks for any comments!

Marco

 « Return to Thread: Are there any disadvantages of using the Nodes API for the presentation layer?

LightInTheBox - Buy quality products at wholesale price!