protected static class IstiCalendarPanel.CalendarTableModel
extends javax.swing.table.AbstractTableModel
Modifier | Constructor and Description |
---|---|
protected |
CalendarTableModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int columnIndex)
Returns the
Class of the column |
int |
getColumnCount()
the max number of columns (days of the week)
|
protected int |
getColumnIndex(int dayOfMonth)
gets the index for the column (day of the week) for the day of the month
|
java.lang.String |
getColumnName(int columnIndex)
the column (day of the week) title
|
protected int |
getDayOfMonthIndex(int dayOfMonth)
gets the index for the day of the month
|
int |
getRowCount()
the max number of rows (weeks in a month)
|
protected int |
getRowIndex(int dayOfMonth)
gets the index for the row (week of month) for the day of the month
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
gets the day of the month specified by the row (week of month)
and the column (day of the week).
|
void |
updateData(java.util.Calendar calendar)
update the data for change in the date
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public void updateData(java.util.Calendar calendar)
calendar
- the calendar for the datepublic int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnIndex
- the column (day of the week)protected int getDayOfMonthIndex(int dayOfMonth)
dayOfMonth
- the day of the monthprotected int getColumnIndex(int dayOfMonth)
dayOfMonth
- the day of the monthprotected int getRowIndex(int dayOfMonth)
dayOfMonth
- the day of the monthpublic java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- the row (week of month)columnIndex
- the column (day of the week)public java.lang.Class getColumnClass(int columnIndex)
Class
of the columngetColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queried