java.lang.Object
javax.swing.table.AbstractTableModel
org.meowers.cide.edcide.map.MapTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class MapTableModel
- extends javax.swing.table.AbstractTableModel
- Version:
|
Method Summary |
java.lang.Class |
getColumnClass(int columnIndex)
Returns the Class for all Object instances
in the specified column. |
int |
getColumnCount()
Returns the number of columns in the model. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value (Object) at a particular cell in the
table. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the specified cell is editable, and
false if it is not. |
void |
setValueAt(java.lang.Object tile,
int rowIndex,
int columnIndex)
Sets the value of the given cell. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
private org.meowers.cide.data.Map map
MapTableModel
public MapTableModel(org.meowers.cide.data.Map m)
- Creates new MapTableModel
getValueAt
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
- Description copied from interface:
javax.swing.table.TableModel
- Returns the value (
Object) at a particular cell in the
table.
setValueAt
public void setValueAt(java.lang.Object tile,
int rowIndex,
int columnIndex)
- Description copied from class:
javax.swing.table.AbstractTableModel
- Sets the value of the given cell. This implementation ignores all
arguments and does nothing, subclasses should override the
method if necessary.
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Description copied from class:
javax.swing.table.AbstractTableModel
- Returns
true if the specified cell is editable, and
false if it is not. This implementation returns
false for all arguments, subclasses should override the
method if necessary.
getColumnClass
public java.lang.Class getColumnClass(int columnIndex)
- Description copied from class:
javax.swing.table.AbstractTableModel
- Returns the
Class for all Object instances
in the specified column.
getRowCount
public int getRowCount()
- Description copied from interface:
javax.swing.table.TableModel
- Returns the number of rows in the model.
getColumnCount
public int getColumnCount()
- Description copied from interface:
javax.swing.table.TableModel
- Returns the number of columns in the model.