rsramanujam.uis
Class RSRCalendarTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--javax.swing.table.DefaultTableModel
              |
              +--rsramanujam.uis.RSRCalendarTableModel

public class RSRCalendarTableModel
extends javax.swing.table.DefaultTableModel

This TableModel is responsible for providing data to the RSRCalendar

Version:
1.0.0 Kamadhenu, an open source repository of user intercace and support utility components Copyright (C) 2002 R Sadagopa Ramanujam This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA R Sadagopa Ramanujam
See Also:
Serialized Form

Field Summary
private  int currDateX
           
private  int currDateY
           
private  java.lang.Object[][] objDates
          This array is used to store the dates for each month
private static java.lang.String[] strDaysOfMonth
          This array holds the days of the week.
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
RSRCalendarTableModel(int year, int month)
          CalendarTableModel cons tructor comment.
 
Method Summary
private  java.lang.Object[][] getCalendarData(int year, int month)
          This method returns a Double Object array that will hold the dates for the month and is used to populate the Calendar table's data
 java.lang.Class getColumnClass(int column)
          This method will always return String as the Column data's type.
 int getColumnCount()
          returns the number of columns.
 int getCurrDateX()
          Insert the method's description here.
 int getCurrDateY()
          Insert the method's description here.
 int getRowCount()
          returns the number of rows.
 java.lang.Object getValueAt(int row, int column)
          returns the value at the given row and column
 boolean isCellEditable(int row, int column)
          No cell is editable for this table model hence
 void setCurrDateX(int newCurrDateX)
          Insert the method's description here.
 void setCurrDateY(int newCurrDateY)
          Insert the method's description here.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnName, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, removeTableModelListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

strDaysOfMonth

private static java.lang.String[] strDaysOfMonth
This array holds the days of the week.

objDates

private java.lang.Object[][] objDates
This array is used to store the dates for each month

currDateX

private int currDateX

currDateY

private int currDateY
Constructor Detail

RSRCalendarTableModel

public RSRCalendarTableModel(int year,
                             int month)
CalendarTableModel cons tructor comment.
Method Detail

getCalendarData

private java.lang.Object[][] getCalendarData(int year,
                                             int month)
This method returns a Double Object array that will hold the dates for the month and is used to populate the Calendar table's data

getColumnClass

public java.lang.Class getColumnClass(int column)
This method will always return String as the Column data's type.
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
column - int
Returns:
java.lang.Class

getColumnCount

public int getColumnCount()
returns the number of columns.
Overrides:
getColumnCount in class javax.swing.table.DefaultTableModel

getCurrDateX

public int getCurrDateX()
Insert the method's description here. Creation date: (5/8/2003 9:55:53 AM)
Returns:
int

getCurrDateY

public int getCurrDateY()
Insert the method's description here. Creation date: (5/8/2003 9:55:53 AM)
Returns:
int

getRowCount

public int getRowCount()
returns the number of rows.
Overrides:
getRowCount in class javax.swing.table.DefaultTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
returns the value at the given row and column
Overrides:
getValueAt in class javax.swing.table.DefaultTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
No cell is editable for this table model hence
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel
Returns:
false

setCurrDateX

public void setCurrDateX(int newCurrDateX)
Insert the method's description here. Creation date: (5/8/2003 9:55:53 AM)
Parameters:
newCurrDateX - int

setCurrDateY

public void setCurrDateY(int newCurrDateY)
Insert the method's description here. Creation date: (5/8/2003 9:55:53 AM)
Parameters:
newCurrDateY - int