|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
datepicker.DaysOfMonthTableModel
public class DaysOfMonthTableModel
Provides a table model for the DatePicker class.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DaysOfMonthTableModel(java.util.TreeMap<java.lang.Integer,WeekObject> _map,
int _dpLang)
Creates a new instance of DaysOfMonthTableModel from
the instances of WeekObject mapped to a TreeMap. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getColumnClass(int c)
Determines the default renderer or editor for each cell. |
int |
getColumnCount()
Implements getColumnCount() from javax.swing.table.TableModel. |
java.lang.String |
getColumnName(int col)
Overrides getColumnName() from javax.swing.table.AbstractTableModel. |
int |
getRowCount()
Implements getRowCount() from javax.swing.table.TableModel. |
java.lang.Object |
getValueAt(int row,
int col)
Implements getValueAt(row, col) from javax.swing.table.TableModel. |
boolean |
isCellEditable(int row,
int col)
Ensures that only selected columns are editable. |
void |
refreshModel(java.util.ArrayList<WeekObject> _dl)
Refreshes the DaysOfMonthTableModel from
the arraylist passed to this method and then fires the
tableChanged method. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets values in the individual cells of the table row. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public DaysOfMonthTableModel(java.util.TreeMap<java.lang.Integer,WeekObject> _map,
int _dpLang)
DaysOfMonthTableModel from
the instances of WeekObject mapped to a TreeMap.
_map - The map onto which the table model is based._dpLang - The language that the day columns are expressed in as
defined in the DatePickerFactors class.| Method Detail |
|---|
public int getColumnCount()
getColumnCount() from javax.swing.table.TableModel.
public int getRowCount()
getRowCount() from javax.swing.table.TableModel.
public java.lang.String getColumnName(int col)
getColumnName() from javax.swing.table.AbstractTableModel.
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row,
int col)
getValueAt(row, col) from javax.swing.table.TableModel.
row - The row coordinate where the value fetched is positioned.col - The column coordinate where the value fetched is positioned.
public java.lang.Class getColumnClass(int c)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelc - The cell class.
public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - The row coordinate of the cell.col - The column coordinate of the cell.
True if the cell can be edited, otherwise false.
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - The object containing the data to be set.row - The row containing the cell to be set.col - The coordinate of the cell to be set.public void refreshModel(java.util.ArrayList<WeekObject> _dl)
DaysOfMonthTableModel from
the arraylist passed to this method and then fires the
tableChanged method.
_dl - The instance of ArrayList passed to the method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||