net.sf.plb4jedit.filelocator
Class MapTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bynet.sf.plb4jedit.filelocator.MapTableModel
All Implemented Interfaces:
Serializable, TableModel

public class MapTableModel
extends AbstractTableModel

A table model that provides editing of map configurations

Author:
Bernhard Krickl V.0.01 $Log: MapTableModel.java,v $ V.0.01 Revision 1.1 2003/11/04 17:40:31 skopp V.0.01 checked in subprojects + sources V.0.01 V.0.01 Revision 1.1 2002/05/08 15:02:31 krickl V.0.01 A table model that provides editing of map configurations V.0.01
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MapTableModel(Vector newMapConfigs)
           
 
Method Summary
 Class getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int index)
           
 int getRowCount()
          returns the number of currently available MapConfigs plus one to produce an empty line.
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(Object valueObj, int row, int col)
          set the value at the specified cell.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTableModel

public MapTableModel(Vector newMapConfigs)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()
returns the number of currently available MapConfigs plus one to produce an empty line. The empty line is necessary to be able to insert new lines.


getColumnClass

public Class getColumnClass(int col)

getValueAt

public Object getValueAt(int row,
                         int col)

isCellEditable

public boolean isCellEditable(int row,
                              int col)

setValueAt

public void setValueAt(Object valueObj,
                       int row,
                       int col)
set the value at the specified cell. empty values delete the row. setting values in non-existent rows inserts one row after the current last row.


getColumnName

public String getColumnName(int index)


Copyright © 2003 Riege Software Internationl. All Rights Reserved.