|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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()
TableModelJTable 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 TableModelTableModel.getColumnCount()public int getColumnCount()
TableModelJTable uses this method to determine how many columns it
should create and display by default.
getColumnCount in interface TableModelTableModel.getRowCount()public String getColumnName(int column)
AbstractTableModelcolumn cannot be found,
returns an empty string.
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column being queried
columnpublic Class getColumnClass(int column)
AbstractTableModelObject.class regardless of columnIndex.
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - the column being queried
public Object getValueAt(int row,
int col)
TableModelcolumnIndex and
rowIndex.
getValueAt in interface TableModelrow - 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 TableModelsetValueAt in class AbstractTableModelvalue - value to assign to cellrow - row of cellcol - column of cell
public boolean isCellEditable(int row,
int column)
AbstractTableModel
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - the row being queriedcolumn - the column being queried
public void contentsChanged(ListDataEvent e)
ListDataListener
contentsChanged in interface ListDataListenere - a ListDataEvent encapsulating the
event informationpublic void intervalAdded(ListDataEvent e)
ListDataListener
intervalAdded in interface ListDataListenere - a ListDataEvent encapsulating the
event informationpublic void intervalRemoved(ListDataEvent e)
ListDataListener
intervalRemoved in interface ListDataListenere - a ListDataEvent encapsulating the
event information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||