com.jzy3d.surfedit.swing.table
Class SurfEditTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jzy3d.surfedit.swing.table.SurfEditTableModel
All Implemented Interfaces:
Serializable, TableModel

public class SurfEditTableModel
extends AbstractTableModel

See Also:
Serialized Form

Field Summary
protected  MapData data
           
protected  SurfEditTableLayout layout
           
protected  Integer[][] surfaceValues
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SurfEditTableModel(MapData data, SurfEditTableLayout layout)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int col)
           
 int getRowCount()
           
 SurfEditTableLayout getTableLayout()
          Returns the layout of the table, as specified in constructor.
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(Object value, int row, int col)
          Perform cell content edition validation once the user has hit the "enter" key.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

surfaceValues

protected final Integer[][] surfaceValues

data

protected final MapData data

layout

protected final SurfEditTableLayout layout
Constructor Detail

SurfEditTableModel

public SurfEditTableModel(MapData data,
                          SurfEditTableLayout layout)
Method Detail

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public Object getValueAt(int row,
                         int col)

isCellEditable

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

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
Perform cell content edition validation once the user has hit the "enter" key.

Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel
See Also:
that can perform raw key events filtering

getTableLayout

public SurfEditTableLayout getTableLayout()
Returns the layout of the table, as specified in constructor.



Copyright © 2014. All rights reserved.