public class LastDigipeatFilterUI extends javax.swing.table.AbstractTableModel implements DigipeatListener, SaveableFilter, java.io.Closeable, FilterChangeListener
| Constructor and Description |
|---|
LastDigipeatFilterUI(Filter myFilter)
Create a UI for controlling a LastDigipeatFilter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream and releases any system resources associated
with it.
|
void |
digipeaterAdded(java.lang.String digipeat,
int index) |
void |
digipeaterUsedAgain(java.lang.String digipeat) |
void |
filterSettingsChanged(Filter changedFilter,
boolean changedByUser)
Called when the specified Filter's matching criteria have been changed.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
javax.swing.filechooser.FileNameExtensionFilter |
getPreferredFileType()
Specify the preferred filetype for files saving this Filter's data set.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isSaveable()
Indicate if this Filter is saveable.
|
void |
saveFilterToFile(java.io.BufferedOutputStream out)
Save the contents of the Filter to the specified DataOutput object.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic LastDigipeatFilterUI(Filter myFilter)
myFilter - the LastDigipeatFilter instance to controlLastDigipeatFilterpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public int getRowCount()
getRowCount in interface javax.swing.table.TableModelgetColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.getValueAt in interface javax.swing.table.TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic void digipeaterAdded(java.lang.String digipeat,
int index)
digipeaterAdded in interface DigipeatListenerpublic void digipeaterUsedAgain(java.lang.String digipeat)
digipeaterUsedAgain in interface DigipeatListenerpublic boolean isSaveable()
isSaveable in interface SaveableFilterpublic javax.swing.filechooser.FileNameExtensionFilter getPreferredFileType()
getPreferredFileType in interface SaveableFilterpublic void saveFilterToFile(java.io.BufferedOutputStream out)
throws java.io.IOException
saveFilterToFile in interface SaveableFilterout - DataOutput implementing object for writing the file contents in its preferred formatjava.io.IOException - if the write failed for some reasonpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - if an I/O error occurspublic void filterSettingsChanged(Filter changedFilter, boolean changedByUser)
filterSettingsChanged in interface FilterChangeListenerchangedFilter - Filter that has changedchangedByUser - boolean true if change was manually made by user, false if
change was made automatically by dynamic filter logic