|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.geotools.gui.swing.table.ImageTableModel.RowHeaders
A table model for row headers. This model has only one column, and each cell values is the row name defined in the enclosing class. A table using this model can be set as the scroll pane's row header for an image table.
JScrollPane.setRowHeader(javax.swing.JViewport)
,
Serialized FormField Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ImageTableModel.RowHeaders()
Creates a new instance of row headers. |
Method Summary | |
java.lang.Class |
getColumnClass(int column)
Returns the type of row headers, which is . |
int |
getColumnCount()
Returns the number of columns in the model, which is 1. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int row,
int column)
Returns the row name for the given index, regardless of the column. |
void |
tableChanged(javax.swing.event.TableModelEvent event)
Invoked when the enclosing ImageTableModel data changed. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, 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 |
public ImageTableModel.RowHeaders()
ImageTableModel
.
Method Detail |
public int getRowCount()
ImageTableModel
.
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int row, int column)
getValueAt
in interface javax.swing.table.TableModel
public void tableChanged(javax.swing.event.TableModelEvent event)
ImageTableModel
data changed. This method fires
an event for this model as well except if the change was not a change in the table
structure.
tableChanged
in interface javax.swing.event.TableModelListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |