ui.table.model
Class PhoneNumberTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ui.table.model.PhoneNumberTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class PhoneNumberTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
static int PHONENUMBER_AREA_CODE_COLUMN
           
static int PHONENUMBER_DESCRIPTION_COLUMN
           
static int PHONENUMBER_EXCHANGE_COLUMN
           
static int PHONENUMBER_ID_COLUMN
           
static int PHONENUMBER_NUMBER_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PhoneNumberTableModel(User user)
           
 
Method Summary
 java.lang.Class getColumnClass(int column)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setValueAt(java.lang.Object value, int row, int column)
           
 void update(java.util.Observable observable, java.lang.Object changedObject)
           
 
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

PHONENUMBER_ID_COLUMN

public static final int PHONENUMBER_ID_COLUMN
See Also:
Constant Field Values

PHONENUMBER_AREA_CODE_COLUMN

public static final int PHONENUMBER_AREA_CODE_COLUMN
See Also:
Constant Field Values

PHONENUMBER_EXCHANGE_COLUMN

public static final int PHONENUMBER_EXCHANGE_COLUMN
See Also:
Constant Field Values

PHONENUMBER_NUMBER_COLUMN

public static final int PHONENUMBER_NUMBER_COLUMN
See Also:
Constant Field Values

PHONENUMBER_DESCRIPTION_COLUMN

public static final int PHONENUMBER_DESCRIPTION_COLUMN
See Also:
Constant Field Values
Constructor Detail

PhoneNumberTableModel

public PhoneNumberTableModel(User user)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

getColumnClass

public java.lang.Class getColumnClass(int column)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

update

public void update(java.util.Observable observable,
                   java.lang.Object changedObject)


Copyright © 2006 SF.net. All Rights Reserved.