|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.table.AbstractTableModel
Abstract Table Model.
Field Summary | |
protected EventListenerList |
listenerList
|
Constructor Summary | |
AbstractTableModel()
Constructs new AbstractTableModel object. |
Method Summary | |
void |
addTableModelListener(TableModelListener listener)
Adds listener. |
int |
findColumn(java.lang.String columnName)
Return the index of the specified column, or -1 if there is no such column. |
void |
fireTableCellUpdated(int row,
int column)
Fires table cell updated event. |
void |
fireTableChanged(TableModelEvent e)
Fires table changed event. |
void |
fireTableDataChanged()
Notifies listeners that table model has changed. |
void |
fireTableRowsDeleted(int firstRow,
int lastRow)
Fires table rows deleted event. |
void |
fireTableRowsInserted(int firstRow,
int lastRow)
Fires table rows inserted event. |
void |
fireTableRowsUpdated(int firstRow,
int lastRow)
Fires table rows updated event. |
void |
fireTableStructureChanged()
Notifies listeners that table structure has changed. |
java.lang.Class |
getColumnClass(int columnIndex)
Returns the class of the specified column. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the specified column. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerClass)
Returns listeners specified by the listener class. |
TableModelListener[] |
getTableModelListeners()
Returns table model listeners. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the cell is editable. |
void |
removeTableModelListener(TableModelListener listener)
Removes a listener. |
void |
setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex)
Sets the value for the specified cell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.table.TableModel |
getColumnCount, getRowCount, getValueAt |
Field Detail |
protected EventListenerList listenerList
Constructor Detail |
public AbstractTableModel()
Method Detail |
public int findColumn(java.lang.String columnName)
columnName
- the name of the column
public void fireTableChanged(TableModelEvent e)
e
- the event to sendpublic void fireTableDataChanged()
public void fireTableStructureChanged()
public void fireTableRowsInserted(int firstRow, int lastRow)
firstRow
- the first rowlastRow
- the last rowpublic void fireTableRowsUpdated(int firstRow, int lastRow)
firstRow
- the first rowlastRow
- the last rowpublic void fireTableRowsDeleted(int firstRow, int lastRow)
firstRow
- the first rowlastRow
- the last rowpublic void fireTableCellUpdated(int row, int column)
row
- the rowcolumn
- the columnpublic TableModelListener[] getTableModelListeners()
public java.util.EventListener[] getListeners(java.lang.Class listenerClass)
listenerClass
- the listener class
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface TableModel
columnIndex
- the column index
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
columnIndex
- the column index
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
rowIndex
- the row indexcolumnIndex
- the column index
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
value
- the valuerowIndex
- the row indexcolumnIndex
- the column indexpublic void addTableModelListener(TableModelListener listener)
addTableModelListener
in interface TableModel
listener
- the listenerpublic void removeTableModelListener(TableModelListener listener)
removeTableModelListener
in interface TableModel
listener
- the listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |