com.jidesoft.grid
Class AbstractNavigableTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
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
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 |
AbstractNavigableTableModel
protected AbstractNavigableTableModel()
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 indexcolumnIndex
- 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