|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.calendar.MonthTable.MonthModel
Build data model wrapper around DateSymbols that builds a 2x6 table of the months for picking.
Field Summary | |
protected int |
numRows
|
protected com.klg.jclass.util.JCListenerList |
tableListeners
|
Constructor Summary | |
MonthTable.MonthModel(Locale l)
Construct a MonthModel with a certain locale. |
Method Summary | |
void |
addTableModelListener(TableModelListener l)
Add a table listener to the model. |
Class |
getColumnClass(int columnIndex)
Get the class of a particular column. |
int |
getColumnCount()
Get the number of columns. |
String |
getColumnName(int columnIndex)
Get the name of a particular column. |
int |
getRowCount()
Get the number of rows. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Return the value at the given row and column. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Test to see if the cell is editable. |
void |
removeTableModelListener(TableModelListener l)
Remove a table listener from the model. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
Set the value at the given row and column. |
void |
valueChanged(com.klg.jclass.util.value.JCValueEvent event)
The method informs the listener that the value has been changed. |
void |
valueChanging(com.klg.jclass.util.value.JCValueEvent event)
The value is changing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.JCListenerList tableListeners
protected int numRows
Constructor Detail |
public MonthTable.MonthModel(Locale l)
l
- The locale from which the short month names is garneredMethod Detail |
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
columnIndex
- The index of column whose name is required
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
columnIndex
- The index of column whose class type is required
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
rowIndex
- The row index of the cellcolumnIndex
- The column index of the cell
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
rowIndex
- The row index of the cellcolumnIndex
- The column index of the cell
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
aValue
- The value to be setrowIndex
- The row index of the cellcolumnIndex
- The column index of the cell
IllegalArgumentException
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
l
- The table model listener to be addedpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
l
- The table model listener to be removedpublic void valueChanging(com.klg.jclass.util.value.JCValueEvent event)
valueChanging
in interface JCValueListener
event
- The event generated by the value changingpublic void valueChanged(com.klg.jclass.util.value.JCValueEvent event)
valueChanged
in interface JCValueListener
event
- The event generated by the value being changed
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |