Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.schooltool.client.gui.widgets
Class TableMap  view TableMap download TableMap.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.schooltool.client.gui.widgets.TableViewModel
          extended byorg.schooltool.client.gui.widgets.TableMap
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, javax.swing.table.TableModel, javax.swing.event.TableModelListener
Direct Known Subclasses:
TableSorter

public class TableMap
extends TableViewModel
implements javax.swing.event.TableModelListener


Field Summary
protected  TableViewModel model
           
 
Fields inherited from class org.schooltool.client.gui.widgets.TableViewModel
columnEditorTypes
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TableMap()
           
 
Method Summary
 java.lang.Class getColumnClass(int aColumn)
          Returns the Class for all Object instances in the specified column.
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int aColumn)
          Returns the name of the specified column.
 long getCurrentPK(int aRow)
           
 TableViewModel getModel()
           
 long[] getPkArray()
           
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int aRow, int aColumn)
          Returns the value (Object) at a particular cell in the table.
 boolean isCellEditable(int row, int column)
          Returns true if the specified cell is editable, and false if it is not.
 void setCurrentPK(int aRow, long aValue)
           
 void setModel(TableViewModel model)
           
 void setPkArray(long[] pkArray)
           
 void setValueAt(java.lang.Object aValue, int aRow, int aColumn)
          Sets the value of the given cell.
 void tableChanged(javax.swing.event.TableModelEvent e)
          Table changed
 
Methods inherited from class org.schooltool.client.gui.widgets.TableViewModel
add, addSearchWidgetArray, callMethod, callMethod, callMethod, copyModel, delete, getColumnEditorTypes, getComboBoxFK, getDataModel, getFkModels, getOrderArray, getSearchWidget, setColumnEditorTypes, setFkModels, translateKey
 
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
 

Field Detail

model

protected TableViewModel model
Constructor Detail

TableMap

public TableMap()
Method Detail

getModel

public TableViewModel getModel()

setModel

public void setModel(TableViewModel model)

getValueAt

public java.lang.Object getValueAt(int aRow,
                                   int aColumn)
Description copied from interface: javax.swing.table.TableModel
Returns the value (Object) at a particular cell in the table.

Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class TableViewModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int aRow,
                       int aColumn)
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.

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class TableViewModel

getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.

Specified by:
getRowCount in interface javax.swing.table.TableModel
Overrides:
getRowCount in class TableViewModel

getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Overrides:
getColumnCount in class TableViewModel

getCurrentPK

public long getCurrentPK(int aRow)
Overrides:
getCurrentPK in class TableViewModel

getPkArray

public long[] getPkArray()
Overrides:
getPkArray in class TableViewModel

setCurrentPK

public void setCurrentPK(int aRow,
                         long aValue)
Overrides:
setCurrentPK in class TableViewModel

setPkArray

public void setPkArray(long[] pkArray)
Overrides:
setPkArray in class TableViewModel

getColumnName

public java.lang.String getColumnName(int aColumn)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the name of the specified column. This method generates default names in a sequence (starting with column 0): A, B, C, ..., Z, AA, AB, AC, ..., AZ, BA, BB, BC, and so on. Subclasses may override this method to allow column names to be specified on some other basis.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class TableViewModel

getColumnClass

public java.lang.Class getColumnClass(int aColumn)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the Class for all Object instances in the specified column.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class TableViewModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
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.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class TableViewModel

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Description copied from interface: javax.swing.event.TableModelListener
Table changed

Specified by:
tableChanged in interface javax.swing.event.TableModelListener