jaxx.runtime.swing.nav.treetable
Class NavTreeTableModel

java.lang.Object
  extended by jaxx.runtime.swing.nav.treetable.NavTreeTableModel
All Implemented Interfaces:
TreeModel, org.jdesktop.swingx.treetable.TreeTableModel

public class NavTreeTableModel
extends Object
implements org.jdesktop.swingx.treetable.TreeTableModel

Model of the tree table used for a jaxx tree table api.

Since:
2.2
Author:
sletellier

Nested Class Summary
static class NavTreeTableModel.MyDefaultTreeTableModel
          Hack to acces to the modelSupport
 
Field Summary
protected  NavTreeTableModel.MyDefaultTreeTableModel delegate
          the delegate model
 
Constructor Summary
NavTreeTableModel(NavTreeTableModel.MyDefaultTreeTableModel delegate)
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
 String[] getColomnsNames()
           
 Class<?> getColumnClass(int i)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 NavTreeTableModel.MyDefaultTreeTableModel getDelegate()
           
 int getHierarchicalColumn()
           
 int getIndexOfChild(Object parent, Object child)
           
 org.jdesktop.swingx.tree.TreeModelSupport getModelSupport()
           
 org.jdesktop.swingx.treetable.TreeTableNode[] getPathToRoot(org.jdesktop.swingx.treetable.TreeTableNode aNode)
           
 org.jdesktop.swingx.treetable.TreeTableNode getRoot()
           
 Object getValueAt(Object o, int i)
           
 boolean isCellEditable(Object o, int i)
           
 boolean isLeaf(Object node)
           
 void nodeChanged(NavTreeTableNode<?> node)
           
 void nodeStructureChanged(NavTreeTableNode<?> node)
           
 void removeTreeModelListener(TreeModelListener l)
           
 void setRoot(org.jdesktop.swingx.treetable.TreeTableNode root)
           
 void setValueAt(Object o, Object o1, int i)
           
 void valueForPathChanged(TreePath path, Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected NavTreeTableModel.MyDefaultTreeTableModel delegate
the delegate model

Constructor Detail

NavTreeTableModel

public NavTreeTableModel(NavTreeTableModel.MyDefaultTreeTableModel delegate)
Method Detail

getPathToRoot

public org.jdesktop.swingx.treetable.TreeTableNode[] getPathToRoot(org.jdesktop.swingx.treetable.TreeTableNode aNode)

nodeStructureChanged

public void nodeStructureChanged(NavTreeTableNode<?> node)

nodeChanged

public void nodeChanged(NavTreeTableNode<?> node)

getDelegate

public NavTreeTableModel.MyDefaultTreeTableModel getDelegate()

getModelSupport

public org.jdesktop.swingx.tree.TreeModelSupport getModelSupport()

getColomnsNames

public String[] getColomnsNames()

setRoot

public void setRoot(org.jdesktop.swingx.treetable.TreeTableNode root)

getRoot

public org.jdesktop.swingx.treetable.TreeTableNode getRoot()
Specified by:
getRoot in interface TreeModel

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
Specified by:
valueForPathChanged in interface TreeModel

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Specified by:
addTreeModelListener in interface TreeModel

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Specified by:
removeTreeModelListener in interface TreeModel

getColumnClass

public Class<?> getColumnClass(int i)
Specified by:
getColumnClass in interface org.jdesktop.swingx.treetable.TreeTableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface org.jdesktop.swingx.treetable.TreeTableModel

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface org.jdesktop.swingx.treetable.TreeTableModel

getHierarchicalColumn

public int getHierarchicalColumn()
Specified by:
getHierarchicalColumn in interface org.jdesktop.swingx.treetable.TreeTableModel

getValueAt

public Object getValueAt(Object o,
                         int i)
Specified by:
getValueAt in interface org.jdesktop.swingx.treetable.TreeTableModel

isCellEditable

public boolean isCellEditable(Object o,
                              int i)
Specified by:
isCellEditable in interface org.jdesktop.swingx.treetable.TreeTableModel

setValueAt

public void setValueAt(Object o,
                       Object o1,
                       int i)
Specified by:
setValueAt in interface org.jdesktop.swingx.treetable.TreeTableModel


Copyright © 2008-2012 CodeLutin. All Rights Reserved.