org.nuiton.jaxx.runtime.swing.nav.package.html Maven / Gradle / Ivy
JAXX - nav api
This package contains a little framework to build dynamic nodes.
Tow implementations are offers :
- One for the JTree in jaxx.runtime.swing.nav.tree
- One for the JXTreeTable in
jaxx.runtime.swing.nav.treetable
Replace the previous framework from package
jaxx.runtime.swing.navigation
Why this api ?
The main goal of this api is to offer an auto-loading system of tree
model.
While previous api we had to load all the model in memory, now we can build
a tree model with no data.
When the tree will need to expand a node, it will ask first in childs of
node were loaded, if not, load them then give by hand to system.
This api allow to switch easily between tree implementation and tree table
api.
Api
DataProvider
Contract of objet responsible of acquiring data to populate nodes and render
them.
JaxxNode
Jaxx node contract customized for our purpose (loaded, dirty states,...).
JaxxNodeChildLoador
Contract to load childs of a JaxxNode using DataProvider.
JaxxNavHelper
Helper to manage a tree or a tree table using auto-loading nodes.
JaxxNavBridge
Bridge to encapsulate models.