org.chorem.lima.ui.vatchart
Class VatChartTreeTableModel

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractTreeTableModel
      extended by org.chorem.lima.ui.vatchart.VatChartTreeTableModel
All Implemented Interfaces:
TreeModel, org.jdesktop.swingx.treetable.TreeTableModel

public class VatChartTreeTableModel
extends org.jdesktop.swingx.treetable.AbstractTreeTableModel


Field Summary
protected  VatStatementServiceMonitorable vatStatementService
          Services.
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
modelSupport, root
 
Constructor Summary
VatChartTreeTableModel()
          Model constructor.
 
Method Summary
 void addVatStatement(TreePath path, VatStatement vatStatement)
          Add VatStatement(path can be null).
 Object getChild(Object parent, int index)
           
 int getChildCount(Object node)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getIndexOfChild(Object parent, Object child)
           
 Object getValueAt(Object node, int column)
           
 boolean isCellEditable(Object node, int column)
           
 boolean isLeaf(Object node)
           
 void refreshTree()
          Refresh VatStatementChart.
 void removeVatStatementObject(TreePath path, VatStatement vatStatement)
          Remove vatStatement
 void setValueAt(Object value, Object node, int column)
           
 void updateVatStatement(TreePath path, VatStatement vatStatement)
          Update vatStatement
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
addTreeModelListener, getColumnClass, getHierarchicalColumn, getRoot, getTreeModelListeners, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vatStatementService

protected final VatStatementServiceMonitorable vatStatementService
Services.

Constructor Detail

VatChartTreeTableModel

public VatChartTreeTableModel()
Model constructor. Initiate account service used here.

Method Detail

getColumnCount

public int getColumnCount()

getColumnName

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

getChildCount

public int getChildCount(Object node)

getChild

public Object getChild(Object parent,
                       int index)

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)

getValueAt

public Object getValueAt(Object node,
                         int column)

isCellEditable

public boolean isCellEditable(Object node,
                              int column)
Specified by:
isCellEditable in interface org.jdesktop.swingx.treetable.TreeTableModel
Overrides:
isCellEditable in class org.jdesktop.swingx.treetable.AbstractTreeTableModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel
Overrides:
isLeaf in class org.jdesktop.swingx.treetable.AbstractTreeTableModel

refreshTree

public void refreshTree()
                 throws LimaException
Refresh VatStatementChart.

Throws:
LimaException

addVatStatement

public void addVatStatement(TreePath path,
                            VatStatement vatStatement)
                     throws LimaException
Add VatStatement(path can be null).

Parameters:
path -
account -
Throws:
LimaException

updateVatStatement

public void updateVatStatement(TreePath path,
                               VatStatement vatStatement)
                        throws LimaException
Update vatStatement

Parameters:
path -
account -
Throws:
LimaException

removeVatStatementObject

public void removeVatStatementObject(TreePath path,
                                     VatStatement vatStatement)
                              throws LimaException
Remove vatStatement

Parameters:
path -
object -
Throws:
LimaException

setValueAt

public void setValueAt(Object value,
                       Object node,
                       int column)
Specified by:
setValueAt in interface org.jdesktop.swingx.treetable.TreeTableModel
Overrides:
setValueAt in class org.jdesktop.swingx.treetable.AbstractTreeTableModel


Copyright © 2008-2011 CodeLutin. All Rights Reserved.