Package org.nuiton.jaxx.runtime.swing.nav
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.-
Interface Summary Interface Description NavBridge<M,N extends NavNode<M,N>> Contract of the bridge used byNavHelperto hold model and ui.NavDataProvider Contract of provider of data.NavNode<M,N extends NavNode<M,N>> Definition of a node with a optionalchildLoadorto build childs of node. -
Class Summary Class Description NavHelper<M,U,B extends NavBridge<M,N>,N extends NavNode<M,N>> Tree helper to deal with the build of trees and other usefull operations.NavNodeChildLoador<T,O,M,B extends NavBridge<M,N>,N extends NavNode<M,N>> Object to load childs of a node.