org.chorem.lima.ui.financialstatementchart
Class FinancialStatementChartTreeTableModel

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

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

Tree table model for account edition.

Version:
$Revision: 3278 $ Last update : $Date: 2011-08-16 16:09:44 +0200 (Tue, 16 Aug 2011) $ By : $Author: tchemit $
Author:
ore, chatellier

Field Summary
protected  FinancialStatementServiceMonitorable financialStatementService
          Services.
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
modelSupport, root
 
Constructor Summary
FinancialStatementChartTreeTableModel()
          Model constructor.
 
Method Summary
 void addFinancialStatement(TreePath path, FinancialStatement financialStatement)
          Add FinancialStatement(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 FinancialStatementChart.
 void removeFinancialStatementObject(TreePath path, FinancialStatement financialStatement)
          Remove financialStatement
 void updateFinancialStatement(TreePath path, FinancialStatement financialStatement)
          Update financialStatement
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
addTreeModelListener, getColumnClass, getHierarchicalColumn, getRoot, getTreeModelListeners, removeTreeModelListener, setValueAt, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

financialStatementService

protected final FinancialStatementServiceMonitorable financialStatementService
Services.

Constructor Detail

FinancialStatementChartTreeTableModel

public FinancialStatementChartTreeTableModel()
Model constructor. Init 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 FinancialStatementChart.

Throws:
LimaException

addFinancialStatement

public void addFinancialStatement(TreePath path,
                                  FinancialStatement financialStatement)
                           throws LimaException
Add FinancialStatement(path can be null).

Parameters:
path -
account -
Throws:
LimaException

updateFinancialStatement

public void updateFinancialStatement(TreePath path,
                                     FinancialStatement financialStatement)
                              throws LimaException
Update financialStatement

Parameters:
path -
account -
Throws:
LimaException

removeFinancialStatementObject

public void removeFinancialStatementObject(TreePath path,
                                           FinancialStatement financialStatement)
                                    throws LimaException
Remove financialStatement

Parameters:
path -
object -
Throws:
LimaException


Copyright © 2008-2011 CodeLutin. All Rights Reserved.