org.datamanager.simpleton
Class TabularEmailDisplay.EmailTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--org.datamanager.simpleton.TabularEmailDisplay.EmailTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
TabularEmailDisplay

public class TabularEmailDisplay.EmailTableModel
extends AbstractTableModel

The table used to display the email Entities.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TabularEmailDisplay.EmailTableModel()
           
 
Method Summary
 void addEmail(Entity email)
          Adds the given Entity (which is expected to represent an email) to the table.
 int getColumnCount()
           
 String getColumnName(int columnIndex)
           
 Object getElementAt(int rowIndex)
          Returns the object at row rowIndex.
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 void setEmailList(List emailList)
           
 void sort(int columnIndex)
          Initiates a sort of the tabular data.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabularEmailDisplay.EmailTableModel

public TabularEmailDisplay.EmailTableModel()
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getElementAt

public Object getElementAt(int rowIndex)
Returns the object at row rowIndex.


sort

public void sort(int columnIndex)
Initiates a sort of the tabular data. Date is a special case. Calls stringSort() or dateSort().


setEmailList

public void setEmailList(List emailList)

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

getColumnName

public String getColumnName(int columnIndex)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

addEmail

public void addEmail(Entity email)
Adds the given Entity (which is expected to represent an email) to the table.



See the Helium Website