|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
uk.apl.jxc.tools.XMLFilterTableModel
public class XMLFilterTableModel
TableModel representation of an XMLFilter configuration.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
XMLFilterTableModel()
Constructs a new XMLFilterTableModel. |
Method Summary | |
---|---|
void |
applyCriteria(java.util.Iterator<XMLFilterCriteria> iterator)
Restores saved filter criteria from a criteria iterator. |
boolean |
isCellEditable(int row,
int col)
Returns true if a cell is editable, false otherwise. |
void |
setSchema(XMLSchema schema)
Sets the XML schema to which the filter applies. |
void |
storeFilter(java.io.File filterFile)
Saves the filter in a properties file. |
XMLFilter |
toFilter()
Returns the table model contents as an XMLFilter. |
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, 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 XMLFilterTableModel()
Method Detail |
---|
public void setSchema(XMLSchema schema)
schema
- XMLSchema the filter applies topublic void applyCriteria(java.util.Iterator<XMLFilterCriteria> iterator) throws java.io.FileNotFoundException, java.io.IOException
iterator
- the iterator to apply the criteria from
java.io.FileNotFoundException
java.io.IOException
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
row
- the cells rowcol
- the cells column
public XMLFilter toFilter()
public void storeFilter(java.io.File filterFile) throws java.io.FileNotFoundException, java.io.IOException
filterFile
- the file to save the filter to
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |