|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.itr_rescue.dataGuard.localFileSystem.view.detail.DetailsTableModel
public class DetailsTableModel
Title: Java File Manager Description: Copyright: Copyright (c) 2001 Company: Home
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
DetailsTableModel(JFMFileSystem fs)
|
Method Summary | |
---|---|
void |
addRow(java.lang.Object[] newRow)
Add a row to the data model. |
void |
addRow(java.util.Vector newRow)
Add a row to the data model. |
void |
browseDirectory(JFMFile el)
|
void |
clear()
Removes all rows from the data model. |
protected static java.util.Vector |
convertToVector(java.lang.Object[] anArray)
Returns a vector that contains the same objects as the array. |
protected static java.util.Vector |
convertToVector(java.lang.Object[][] anArray)
Returns a vector of vectors that contains the same objects as the array. |
java.lang.Class |
getColumnClass(int c)
|
int |
getColumnCount()
Returns the number of columns |
int |
getColumnIndex(java.lang.Class colClass)
|
java.lang.String |
getColumnName(int column)
Returns the column name |
java.util.Vector |
getCurrentFiles()
Returns a List of all the files found in the directory. |
JFMFile |
getFileAt(int index)
Returns the JFMFile found at the specific index. |
JFMFileSystem |
getFilesystem()
|
int |
getRowCount()
Returns the number of rows |
java.lang.Object |
getValueAt(int row,
int column)
Returns the element at the specified row and column |
JFMFile |
getWorkingDirectory()
This is the view that this model belongs to. |
boolean |
isCellEditable(int row,
int column)
Returns whether the cell is editable. |
void |
removeRow(int row)
|
void |
setFilesystem(JFMFileSystem filesystem)
|
void |
setValueAt(java.lang.Object value,
int row,
int column)
Sets an object at the specified row and column |
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 |
Constructor Detail |
---|
public DetailsTableModel(JFMFileSystem fs)
Method Detail |
---|
public JFMFile getWorkingDirectory()
public int getColumnIndex(java.lang.Class colClass)
public java.util.Vector getCurrentFiles()
public JFMFile getFileAt(int index)
public void browseDirectory(JFMFile el)
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public void clear()
public void addRow(java.util.Vector newRow)
public void addRow(java.lang.Object[] newRow)
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void removeRow(int row)
public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
protected static java.util.Vector convertToVector(java.lang.Object[] anArray)
anArray
- the array to be converted
anArray
is null
,
returns null
protected static java.util.Vector convertToVector(java.lang.Object[][] anArray)
anArray
- the double array to be converted
anArray
is
null
, returns null
public JFMFileSystem getFilesystem()
public void setFilesystem(JFMFileSystem filesystem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |