org.opensourcephysics.display
Class DataTable.DefaultDataTableModel

java.lang.Object
  extended by org.opensourcephysics.display.DataTable.DefaultDataTableModel
All Implemented Interfaces:
javax.swing.table.TableModel, DataTableModel
Direct Known Subclasses:
DataToolTable.DataToolTableModel
Enclosing class:
DataTable

protected static class DataTable.DefaultDataTableModel
extends java.lang.Object
implements DataTableModel


Constructor Summary
protected DataTable.DefaultDataTableModel()
           
 
Method Summary
 void add(javax.swing.table.TableModel tableModel)
          Method add
 void addTableModelListener(javax.swing.event.TableModelListener l)
          Method addTableModelListener
 void clear()
          Method clear
 java.lang.Class<?> getColumnClass(int columnIndex)
          Method getColumnClass
 int getColumnCount()
          Method getColumnCount
 java.lang.String getColumnName(int columnIndex)
          Method getColumnName
 int getRowCount()
          Method getRowCount
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Method getValueAt
 boolean isCellEditable(int rowIndex, int columnIndex)
          Method isCellEditable
 boolean isRowNumberVisible()
          Method isRowNumberVisible
 void remove(javax.swing.table.TableModel tableModel)
          Method remove
 void removeTableModelListener(javax.swing.event.TableModelListener l)
          Method removeTableModelListener
 void setColumnVisible(javax.swing.table.TableModel tableModel, int columnIndex, boolean b)
          Method setColumnVisible
 void setRowNumberVisible(boolean _rowNumberVisible)
          Method setRowNumberVisible
 void setStride(javax.swing.table.TableModel tableModel, int stride)
          Method setStride
 void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
          Method setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTable.DefaultDataTableModel

protected DataTable.DefaultDataTableModel()
Method Detail

setColumnVisible

public void setColumnVisible(javax.swing.table.TableModel tableModel,
                             int columnIndex,
                             boolean b)
Method setColumnVisible

Specified by:
setColumnVisible in interface DataTableModel
Parameters:
tableModel -
columnIndex -
b -

setStride

public void setStride(javax.swing.table.TableModel tableModel,
                      int stride)
Method setStride

Specified by:
setStride in interface DataTableModel
Parameters:
tableModel -
stride -

setRowNumberVisible

public void setRowNumberVisible(boolean _rowNumberVisible)
Method setRowNumberVisible

Specified by:
setRowNumberVisible in interface DataTableModel
Parameters:
_rowNumberVisible -

setValueAt

public void setValueAt(java.lang.Object value,
                       int rowIndex,
                       int columnIndex)
Method setValueAt

Specified by:
setValueAt in interface javax.swing.table.TableModel
Parameters:
value -
rowIndex -
columnIndex -

isRowNumberVisible

public boolean isRowNumberVisible()
Method isRowNumberVisible

Specified by:
isRowNumberVisible in interface DataTableModel
Returns:

getColumnName

public java.lang.String getColumnName(int columnIndex)
Method getColumnName

Specified by:
getColumnName in interface javax.swing.table.TableModel
Parameters:
columnIndex -
Returns:

getRowCount

public int getRowCount()
Method getRowCount

Specified by:
getRowCount in interface javax.swing.table.TableModel
Returns:

getColumnCount

public int getColumnCount()
Method getColumnCount

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Returns:

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Method getValueAt

Specified by:
getValueAt in interface javax.swing.table.TableModel
Parameters:
rowIndex -
columnIndex -
Returns:

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
Method getColumnClass

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Parameters:
columnIndex -
Returns:

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Method isCellEditable

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Parameters:
rowIndex -
columnIndex -
Returns:

remove

public void remove(javax.swing.table.TableModel tableModel)
Method remove

Specified by:
remove in interface DataTableModel
Parameters:
tableModel -

clear

public void clear()
Method clear

Specified by:
clear in interface DataTableModel

add

public void add(javax.swing.table.TableModel tableModel)
Method add

Specified by:
add in interface DataTableModel
Parameters:
tableModel -

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener l)
Method addTableModelListener

Specified by:
addTableModelListener in interface javax.swing.table.TableModel
Parameters:
l -

removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener l)
Method removeTableModelListener

Specified by:
removeTableModelListener in interface javax.swing.table.TableModel
Parameters:
l -