|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel javax.swing.plaf.metal.MetalFileChooserUI.DetailsTableModel
Field Summary | |
(package private) JFileChooser |
chooser
|
(package private) String[] |
columnNames
|
(package private) ListModel |
listModel
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
(package private) |
MetalFileChooserUI.DetailsTableModel(JFileChooser fc)
|
Method Summary | |
void |
contentsChanged(ListDataEvent e)
Sent when the contents of the list has changed in a way that's too complex to characterize with the previous methods. |
Class |
getColumnClass(int column)
Returns Object.class regardless of columnIndex . |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... |
int |
getRowCount()
Returns the number of rows in the model. |
Object |
getValueAt(int row,
int col)
Returns the value for the cell at columnIndex and
rowIndex . |
void |
intervalAdded(ListDataEvent e)
Sent after the indices in the index0,index1 interval have been inserted in the data model. |
void |
intervalRemoved(ListDataEvent e)
Sent after the indices in the index0,index1 interval have been removed from the data model. |
boolean |
isCellEditable(int row,
int column)
Returns false. |
void |
setValueAt(Object value,
int row,
int col)
This empty implementation is provided so users don't have to implement this method if their data model is not editable. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String[] columnNames
JFileChooser chooser
ListModel listModel
Constructor Detail |
MetalFileChooserUI.DetailsTableModel(JFileChooser fc)
Method Detail |
public int getRowCount()
TableModel
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.
getRowCount
in interface TableModel
TableModel.getColumnCount()
public int getColumnCount()
TableModel
JTable
uses this method to determine how many columns it
should create and display by default.
getColumnCount
in interface TableModel
TableModel.getRowCount()
public String getColumnName(int column)
AbstractTableModel
column
cannot be found,
returns an empty string.
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column being queried
column
public Class getColumnClass(int column)
AbstractTableModel
Object.class
regardless of columnIndex
.
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- the column being queried
public Object getValueAt(int row, int col)
TableModel
columnIndex
and
rowIndex
.
getValueAt
in interface TableModel
row
- the row whose value is to be queriedcol
- the column whose value is to be queried
public void setValueAt(Object value, int row, int col)
AbstractTableModel
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
value
- value to assign to cellrow
- row of cellcol
- column of cellpublic boolean isCellEditable(int row, int column)
AbstractTableModel
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
row
- the row being queriedcolumn
- the column being queried
public void contentsChanged(ListDataEvent e)
ListDataListener
contentsChanged
in interface ListDataListener
e
- a ListDataEvent
encapsulating the
event informationpublic void intervalAdded(ListDataEvent e)
ListDataListener
intervalAdded
in interface ListDataListener
e
- a ListDataEvent
encapsulating the
event informationpublic void intervalRemoved(ListDataEvent e)
ListDataListener
intervalRemoved
in interface ListDataListener
e
- a ListDataEvent
encapsulating the
event information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |