|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--javax.swing.table.DefaultTableModel
|
+--rsramanujam.uis.RSRCalendarTableModel
This TableModel is responsible for providing data to the RSRCalendar
| 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 |
|
| Field Detail |
private static java.lang.String[] strDaysOfMonth
private java.lang.Object[][] objDates
private int currDateX
private int currDateY
| Constructor Detail |
public RSRCalendarTableModel(int year,
int month)
| Method Detail |
private java.lang.Object[][] getCalendarData(int year,
int month)
public java.lang.Class getColumnClass(int column)
column - intpublic int getColumnCount()
public int getCurrDateX()
public int getCurrDateY()
public int getRowCount()
public java.lang.Object getValueAt(int row,
int column)
public boolean isCellEditable(int row,
int column)
public void setCurrDateX(int newCurrDateX)
newCurrDateX - intpublic void setCurrDateY(int newCurrDateY)
newCurrDateY - int
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||