|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.isti.util.gui.IstiCalendarPanel.CalendarTableModel
protected static class IstiCalendarPanel.CalendarTableModel
Table Model for the calendar
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
IstiCalendarPanel.CalendarTableModel()
|
Method Summary | |
---|---|
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 |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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 |
---|
protected IstiCalendarPanel.CalendarTableModel()
Method Detail |
---|
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 month
protected int getColumnIndex(int dayOfMonth)
dayOfMonth
- the day of the month
protected int getRowIndex(int dayOfMonth)
dayOfMonth
- the day of the month
public 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 column
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queried
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |