ch.claudio.todo
Class Model

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ch.claudio.todo.Model
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class Model
extends javax.swing.table.AbstractTableModel

Contains all the logic of this program.

Version:
$Id: Model.java 182 2007-04-18 14:54:15Z claudio $
Author:
Claudio Nieder
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
Model()
          Create the connection to the database.
 
Method Summary
 void addTask(java.lang.String description, long due, long duration, int type, int prio)
           
 void close()
           
 int getColumnCount()
           
 int getLocation()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 void setLocation(int location)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, 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

Model

public Model()
Create the connection to the database.

Method Detail

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

addTask

public void addTask(java.lang.String description,
                    long due,
                    long duration,
                    int type,
                    int prio)

getLocation

public int getLocation()
Returns:
Returns the location.

setLocation

public void setLocation(int location)
Parameters:
location - The location to set.

close

public void close()