JIDE 3.5.15

com.jidesoft.grid
Class AbstractNavigableTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jidesoft.grid.AbstractNavigableTableModel
All Implemented Interfaces:
NavigableModel, NavigableTableModel, Serializable, TableModel

public abstract class AbstractNavigableTableModel
extends AbstractTableModel
implements NavigableTableModel

AbstractNavigableTableModel adds NavigableModel support to AbstractTableModel. You can use it as replacement for AbstractTableModel. It implements both methods in NavigableModel by returning true in NavigableModel.isNavigationOn() and NavigableModel.isNavigableAt(int,int). Subclass can override the default implementation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
protected AbstractNavigableTableModel()
           
 
Method Summary
 boolean isNavigableAt(int rowIndex, int columnIndex)
          Returns if the cell at the given coordinates can be navigated or not.
 boolean isNavigationOn()
          Checks if the navigation is on.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

AbstractNavigableTableModel

protected AbstractNavigableTableModel()
Method Detail

isNavigableAt

public boolean isNavigableAt(int rowIndex,
                             int columnIndex)
Description copied from interface: NavigableModel
Returns if the cell at the given coordinates can be navigated or not.

Specified by:
isNavigableAt in interface NavigableModel
Parameters:
rowIndex - The row index
columnIndex - The column index
Returns:
true if navigable, false otherwise

isNavigationOn

public boolean isNavigationOn()
Description copied from interface: NavigableModel
Checks if the navigation is on. If off, NavigableModel.isNavigableAt(int,int) should always return true for valid indexes.

Specified by:
isNavigationOn in interface NavigableModel
Returns:
true if on, false otherwise

JIDE 3.5.15