|
|||||||||||
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.table.DefaultTableModel org.alltimeflashdreamer.filelister.gui.FileListerTableModel
Title: FileListerTableModel
Description: This is the table model which shows the list of properties needed by the FileLister application.
Organization: All Time Flash Dreamer
Field Summary |
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
FileListerTableModel(File propertyFile)
Constructor initializes the (default) parameters of the property file (unverified) and stores them within the table model. |
Method Summary | |
int |
getColumnCount()
Returns the column count of the table. |
String |
getColumnName(int iColumn)
Returns the name of the column having the given number. |
FileListerXMLHandler |
getXMLHandler()
Returns the config reader, e.g. for save actions. |
boolean |
isCellEditable(int iRow,
int iColumn)
Returns whether the given cell is editable. |
void |
reload(File propertyFile,
boolean bLoadDefaults)
Clears the whole table, reloads the configuration and notifies the table about the change in data. |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileListerTableModel(File propertyFile) throws IOException, SAXException
propertyFile
- the property file
IOException
- if the property file wasn't found
SAXException
- if the property file couldn't be parsedMethod Detail |
public int getColumnCount()
public String getColumnName(int iColumn)
iColumn
- the number of the column
public boolean isCellEditable(int iRow, int iColumn)
iRow
- the number of the rowiColumn
- the number of the column
public FileListerXMLHandler getXMLHandler()
public void reload(File propertyFile, boolean bLoadDefaults) throws IOException, SAXException
propertyFile
- the file to (re)loadbLoadDefaults
- whether to load the default values or not
IOException
- if the property file wasn't found
SAXException
- if the property file couldn't be parsed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |