Class NavTreeTableNode<N extends NavTreeTableNode<N>>

java.lang.Object
org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
jaxx.runtime.swing.nav.treetable.NavTreeTableNode<N>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, NavNode<NavTreeTableModel,​N>, org.jdesktop.swingx.treetable.MutableTreeTableNode, org.jdesktop.swingx.treetable.TreeTableNode

public class NavTreeTableNode<N extends NavTreeTableNode<N>>
extends org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
implements NavNode<NavTreeTableModel,​N>
Implementation of NavNode used to create in tree table This node extends DefaultMutableTreeTableNode used by JXTreeTable
Since:
2.2
Author:
Sylvain Lletellier
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected NavTreeTableNodeChildLoador<?,​?,​N> childLoador
    Optional child loador to lazy create childs of the node.
    protected java.lang.String context
    Optinal context to distinguish different nodes with same internalClass.
    protected boolean dirty
    Flag to know when renderer should (re-)compute render of the node.
    protected java.lang.String id
    Id of the data associated with the node.
    protected java.lang.Class<?> internalClass
    Type of data associated with the node
    protected boolean loaded
    Flag to know when the none static node was loaded.

    Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode

    allowsChildren, children, parent, userObject
  • Constructor Summary

    Constructors
    Modifier Constructor Description
      NavTreeTableNode​(java.lang.Class<?> internalClass, java.lang.String id, java.lang.String context, NavTreeTableNodeChildLoador<?,​?,​N> childLoador)  
    protected NavTreeTableNode​(java.lang.String id)  
  • Method Summary

    Modifier and Type Method Description
    void add​(N node)  
    java.util.Enumeration<N> children()  
    N findNodeById​(java.lang.String id, NavBridge<NavTreeTableModel,​N> model, NavDataProvider provider)
    Given an id, obtain the child with matching id.
    N getChild​(java.lang.String id, NavBridge<NavTreeTableModel,​N> bridge, NavDataProvider provider)
    Given an id, obtain the child with matching id.
    N getChildAt​(int index)  
    N getContainerNode()
    Gets the first node form this one to the root which has a none String type.
    java.lang.String getContext()  
    java.lang.String getId()  
    java.lang.Class<?> getInternalClass()  
    N getParent()  
    N[] getPathToRoot​(NavTreeTableNode aNode, int depth)  
    java.lang.Object getUserObject()  
    void insert​(N node, int position)  
    boolean isDirty()  
    boolean isLeaf()  
    boolean isLoaded()  
    boolean isRoot()  
    boolean isStaticNode()
    To know if the node is static.
    boolean isStringNode()
    Convinient method to known if the node is a String typed.
    void populateChilds​(NavBridge<NavTreeTableModel,​N> bridge, NavDataProvider provider)
    To populate childs of the node (only when a none static node).
    void populateNode​(NavBridge<NavTreeTableModel,​N> model, NavDataProvider provider, boolean populateChilds)
    To populate the node.
    void remove​(N node)  
    void removeAllChildren()  
    void setDirty​(boolean dirty)
    Changes the NavNode.isDirty() state.
    java.lang.String toString()  

    Methods inherited from class org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode

    getColumnCount, getValueAt, isEditable, setValueAt

    Methods inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode

    add, createChildrenList, getAllowsChildren, getChildCount, getIndex, insert, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javax.swing.tree.TreeNode

    getAllowsChildren, getChildCount, getIndex
  • Field Details

    • internalClass

      protected final java.lang.Class<?> internalClass
      Type of data associated with the node
    • context

      protected final java.lang.String context
      Optinal context to distinguish different nodes with same internalClass.
    • id

      protected final java.lang.String id
      Id of the data associated with the node.
    • dirty

      protected boolean dirty
      Flag to know when renderer should (re-)compute render of the node.
    • loaded

      protected boolean loaded
      Flag to know when the none static node was loaded.
    • childLoador

      protected final NavTreeTableNodeChildLoador<?,​?,​N extends NavTreeTableNode<N>> childLoador
      Optional child loador to lazy create childs of the node.
  • Constructor Details

    • NavTreeTableNode

      protected NavTreeTableNode​(java.lang.String id)
    • NavTreeTableNode

      public NavTreeTableNode​(java.lang.Class<?> internalClass, java.lang.String id, java.lang.String context, NavTreeTableNodeChildLoador<?,​?,​N> childLoador)
  • Method Details