org.opensourcephysics.display
Interface DataTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
DataTable.DefaultDataTableModel, DataToolTable.DataToolTableModel

public interface DataTableModel
extends javax.swing.table.TableModel

Interface DataTableModel


Method Summary
 void add(javax.swing.table.TableModel tableModel)
          Add a TableModel object to the table model list.
 void clear()
          Remove all TableModels from the table model list.
 boolean isRowNumberVisible()
          Gets the display row number flag.
 void remove(javax.swing.table.TableModel tableModel)
          Remove a TableModel object from the table model list.
 void setColumnVisible(javax.swing.table.TableModel tableModel, int columnIndex, boolean b)
          Sets the visibility of a column of a TableModel in the DataTable.
 void setRowNumberVisible(boolean rowNumberVisible)
          Sets the display row number flag.
 void setStride(javax.swing.table.TableModel tableModel, int stride)
          Sets the stride of a TableModel in the DataTable.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

setColumnVisible

void setColumnVisible(javax.swing.table.TableModel tableModel,
                      int columnIndex,
                      boolean b)
Sets the visibility of a column of a TableModel in the DataTable.

Parameters:
tableModel -
columnIndex -
b -

remove

void remove(javax.swing.table.TableModel tableModel)
Remove a TableModel object from the table model list.

Parameters:
tableModel -

clear

void clear()
Remove all TableModels from the table model list.


add

void add(javax.swing.table.TableModel tableModel)
Add a TableModel object to the table model list.

Parameters:
tableModel -

setStride

void setStride(javax.swing.table.TableModel tableModel,
               int stride)
Sets the stride of a TableModel in the DataTable.

Parameters:
tableModel -
stride -

setRowNumberVisible

void setRowNumberVisible(boolean rowNumberVisible)
Sets the display row number flag. Table displays row number.

Parameters:
rowNumberVisible -

isRowNumberVisible

boolean isRowNumberVisible()
Gets the display row number flag.

Returns:
visible flag