jsky.util.gui
Class SortedJTable.ModelWrapper

java.lang.Object
  extended by jsky.util.gui.SortedJTable.ModelWrapper
All Implemented Interfaces:
TableModel
Enclosing class:
SortedJTable

protected class SortedJTable.ModelWrapper
extends Object
implements TableModel

Wraps the original table model by mapping rows to their sorted row equivalents.


Constructor Summary
protected SortedJTable.ModelWrapper()
           
 
Method Summary
 void addTableModelListener(TableModelListener l)
           
 Class getColumnClass(int index)
           
 int getColumnCount()
           
 String getColumnName(int index)
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void removeTableModelListener(TableModelListener l)
           
 void setValueAt(Object value, int row, int col)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedJTable.ModelWrapper

protected SortedJTable.ModelWrapper()
Method Detail

addTableModelListener

public void addTableModelListener(TableModelListener l)
Specified by:
addTableModelListener in interface TableModel

getColumnClass

public Class getColumnClass(int index)
Specified by:
getColumnClass in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int index)
Specified by:
getColumnName in interface TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel

removeTableModelListener

public void removeTableModelListener(TableModelListener l)
Specified by:
removeTableModelListener in interface TableModel

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.