com.openindex.openestate.tool.contacts
Class ContactsEntryTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.openindex.openestate.tool.contacts.ContactsEntryTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ContactsEntryTableModel
extends DefaultTableModel

ContactsEntryTableModel.
$Id: ContactsEntryTableModel.java 1207 2011-12-02 01:00:50Z andy $

Author:
Andreas Rudolph
See Also:
Serialized Form

Field Summary
static int COLUMN_CITY
           
static int COLUMN_COMPANY
           
static int COLUMN_DAY_OF_BIRTH
           
static int COLUMN_FIRSTNAME
           
static int COLUMN_GROUP
           
static int COLUMN_ID
           
static int COLUMN_LASTNAME
           
static int COLUMN_MAIL
           
static int COLUMN_PHONE
           
static int COLUMN_STATUS
           
static int COLUMN_STREET
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ContactsEntryTableModel()
          Erzeugt eine Instanz der Klasse 'ContactsEntryTableModel'
 
Method Summary
 void addContactsEntry(ContactsEntry.Row entry, String groupName)
           
 void clear()
           
 Class getColumnClass(int col)
           
 String getColumnName(int col)
           
 Long getEntryIdAt(int row)
           
 Long getGroupIdAt(int row)
           
 boolean isCellEditable(int row, int column)
           
 void setContactEntryAt(int row, ContactsEntry.Row entry, String groupName)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
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

COLUMN_ID

public static final int COLUMN_ID
See Also:
Constant Field Values

COLUMN_LASTNAME

public static final int COLUMN_LASTNAME
See Also:
Constant Field Values

COLUMN_FIRSTNAME

public static final int COLUMN_FIRSTNAME
See Also:
Constant Field Values

COLUMN_COMPANY

public static final int COLUMN_COMPANY
See Also:
Constant Field Values

COLUMN_STREET

public static final int COLUMN_STREET
See Also:
Constant Field Values

COLUMN_CITY

public static final int COLUMN_CITY
See Also:
Constant Field Values

COLUMN_MAIL

public static final int COLUMN_MAIL
See Also:
Constant Field Values

COLUMN_PHONE

public static final int COLUMN_PHONE
See Also:
Constant Field Values

COLUMN_DAY_OF_BIRTH

public static final int COLUMN_DAY_OF_BIRTH
See Also:
Constant Field Values

COLUMN_GROUP

public static final int COLUMN_GROUP
See Also:
Constant Field Values

COLUMN_STATUS

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

ContactsEntryTableModel

public ContactsEntryTableModel()
Erzeugt eine Instanz der Klasse 'ContactsEntryTableModel'

Method Detail

addContactsEntry

public void addContactsEntry(ContactsEntry.Row entry,
                             String groupName)

clear

public void clear()

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getColumnName

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

getEntryIdAt

public Long getEntryIdAt(int row)

getGroupIdAt

public Long getGroupIdAt(int row)

isCellEditable

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

setContactEntryAt

public void setContactEntryAt(int row,
                              ContactsEntry.Row entry,
                              String groupName)


Copyright © 2012 OpenEstate. All Rights Reserved.