|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractTableModel
ImageTableModel.RowHeaders
public class 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 AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ImageTableModel.RowHeaders()
Creates a new instance of row headers. |
Method Summary | |
---|---|
Class |
getColumnClass(int column)
Returns the type of row headers, which is String.class . |
int |
getColumnCount()
Returns the number of columns in the model, which is 1. |
int |
getRowCount()
Returns the number of rows in the model. |
Object |
getValueAt(int row,
int column)
Returns the row name for the given index, regardless of the column. |
void |
tableChanged(TableModelEvent event)
Invoked when the enclosing ImageTableModel data changed. |
Methods inherited from class 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 TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Class getColumnClass(int column)
String.class
.
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public void tableChanged(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 TableModelListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |