JBCSolutions - Jbcgrid v1.6

This document is the API specification for the JbcGrid, version 1.6


jbc.grid
Class JbcGridAbstractTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jbc.grid.JbcGridAbstractTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, JbcGridInterfaceTableModel

public abstract class JbcGridAbstractTableModel
extends javax.swing.table.AbstractTableModel
implements JbcGridInterfaceTableModel

This TableModel extends the AbstractTableModel. You should implement the Abstract classes required by AbstractTableModel. You may extend this class, especially if you are managing huge tables or using a database manager, if you do not want to use vectors or the JbcGridDefaultTableModel.

Author:
Copyright © 1999-2004, JBC. All Rights Reserved.
Licensed Materials - Property of JBC.
See Also:
JbcGridDefaultTableModel, Serialized Form

Constructor Summary
JbcGridAbstractTableModel()
           
 
Method Summary
 javax.swing.JComponent getExpandedRowComponent(int row)
          You should override this method and return a component that will be used to overload the row.
 javax.swing.JComponent getExpandedTreeviewComponent(int row)
          You should override this method and return a component that will be used to expand the row.
 boolean isExpandableTreeview(int row)
          Returns true if this row may be expanded in tree view.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
getColumnCount, getRowCount, getValueAt
 

Constructor Detail

JbcGridAbstractTableModel

public JbcGridAbstractTableModel()
Method Detail

isExpandableTreeview

public boolean isExpandableTreeview(int row)
Returns true if this row may be expanded in tree view.

An expandable row is a row that may answer favourably to the getExpandedTreeviewComponent method.

You should override this method and return true if the specified row is expandable.

Specified by:
isExpandableTreeview in interface JbcGridInterfaceTableModel
Returns:
true if this row is expandable
See Also:
getExpandedTreeviewComponent(int)

getExpandedTreeviewComponent

public javax.swing.JComponent getExpandedTreeviewComponent(int row)
You should override this method and return a component that will be used to expand the row.

Specified by:
getExpandedTreeviewComponent in interface JbcGridInterfaceTableModel
Parameters:
row - the row index
Returns:
an expanded component
See Also:
isExpandableTreeview(int)

getExpandedRowComponent

public javax.swing.JComponent getExpandedRowComponent(int row)
You should override this method and return a component that will be used to overload the row.

Specified by:
getExpandedRowComponent in interface JbcGridInterfaceTableModel
Parameters:
row - the row index
Returns:
an expanded component

JBCSolutions - Jbcgrid v1.6

JBCSolutions - Jbcgrid v1.6