|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.gui.ValueJTableModel
Field Summary | |
protected javax.swing.event.EventListenerList |
listenerList
Storage for the listeners registered with this model. |
Constructor Summary | |
ValueJTableModel(ValueTableModel vtm)
Creates the value GUI table model. |
Method Summary | |
void |
addTableModelListener(javax.swing.event.TableModelListener listener)
Adds a listener to the table model. |
void |
fireTableChanged(javax.swing.event.TableModelEvent event)
Sends the specified event to all registered listeners. |
void |
fireTableDataChanged()
Sends a TableModelEvent to all registered listeners to inform
them that the table data has changed. |
java.lang.Class |
getColumnClass(int columnIndex)
Returns the Class for all Object instances
in the specified column. |
int |
getColumnCount()
Returns the number of columns in the model. |
int |
getColumnIndex(java.lang.String columnName)
Gets the column index for the specified column name. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of a column in the model. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value ( Object ) at a particular cell in the
table. |
void |
importValues(ValueTableModel vtm)
Import the values from the value table model for all rows. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the specified cell is editable, and
false if it is not. |
static void |
main(java.lang.String[] args)
|
void |
removeTableModelListener(javax.swing.event.TableModelListener listener)
Removes a listener from the table model so that it will no longer receive notification of changes to the table model. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value at a particular cell in the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.event.EventListenerList listenerList
Constructor Detail |
public ValueJTableModel(ValueTableModel vtm)
vtm
- the value table model.Method Detail |
public void addTableModelListener(javax.swing.event.TableModelListener listener)
addTableModelListener
in interface javax.swing.table.TableModel
listener
- the listener.public void fireTableChanged(javax.swing.event.TableModelEvent event)
event
- the event to send.public void fireTableDataChanged()
TableModelEvent
to all registered listeners to inform
them that the table data has changed.
public java.lang.Class getColumnClass(int columnIndex)
Class
for all Object
instances
in the specified column.
getColumnClass
in interface javax.swing.table.TableModel
columnIndex
- the column index.
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public int getColumnIndex(java.lang.String columnName)
getColumnIndex
in interface ValueTableModel
columnName
- the column name.
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
columnIndex
- the column index.
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
Object
) at a particular cell in the
table.
getValueAt
in interface javax.swing.table.TableModel
rowIndex
- the row index.columnIndex
- the column index.
public void importValues(ValueTableModel vtm)
importValues
in interface ValueTableModel
vtm
- the value table model.public boolean isCellEditable(int rowIndex, int columnIndex)
true
if the specified cell is editable, and
false
if it is not.
isCellEditable
in interface javax.swing.table.TableModel
rowIndex
- the row index of the cell.columnIndex
- the column index of the cell.
public void removeTableModelListener(javax.swing.event.TableModelListener listener)
removeTableModelListener
in interface javax.swing.table.TableModel
listener
- the listener to remove.public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
aValue
- the value (null
permitted).rowIndex
- the row index.columnIndex
- the column index.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |