Package org.harctoolbox.irscrutinizer
Class NamedIrSignal.LearnedIrSignalTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- org.harctoolbox.irscrutinizer.NamedIrSignal.LearnedIrSignalTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
ParametrizedIrSignal.ParameterIrSignalTableModel
,RawIrSignal.RawTableModel
- Enclosing class:
- NamedIrSignal
public abstract static class NamedIrSignal.LearnedIrSignalTableModel extends DefaultTableModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
unsavedChanges
-
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LearnedIrSignalTableModel(NamedIrSignal.AbstractColumnFunction columnFunc)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSignal(NamedIrSignal cir)
protected boolean
checkCommandSanity(org.harctoolbox.girr.Command command)
protected boolean
checkName(String name)
void
clearComment()
String
columnName(int i)
boolean
getAndResetScrollRequest()
Class<?>
getColumnClass(int columnIndex)
Map<String,org.harctoolbox.girr.Command>
getCommands()
Map<String,org.harctoolbox.girr.Command>
getCommandsWithSanityCheck(GuiUtils guiUtils)
Set<String>
getNonUniqueNames()
abstract String
getType()
ArrayList<Integer>
getUninterestingColumns()
Set<String>
getUniqueNames()
ArrayList<Integer>
getUnusedColumns()
boolean
isAllEqualColumn(int column)
boolean
isCellEditable(int rowIndex, int columnIndex)
boolean
isInterestingColumn(int column)
boolean
isUsedColumn(int column)
void
namesTransform(String from, String to, Iterable<Integer> rows)
boolean
sanityCheck(GuiUtils guiUtils)
abstract org.harctoolbox.girr.Command
toCommand(int row)
String
toPrintString(int modelRow)
For debugging purposes only.void
uniquifyNames(String separator)
boolean
validRow(int row)
-
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, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
LearnedIrSignalTableModel
protected LearnedIrSignalTableModel(NamedIrSignal.AbstractColumnFunction columnFunc)
-
-
Method Detail
-
getType
public abstract String getType()
-
toCommand
public abstract org.harctoolbox.girr.Command toCommand(int row) throws org.harctoolbox.girr.GirrException
- Throws:
org.harctoolbox.girr.GirrException
-
sanityCheck
public boolean sanityCheck(GuiUtils guiUtils)
-
getCommandsWithSanityCheck
public Map<String,org.harctoolbox.girr.Command> getCommandsWithSanityCheck(GuiUtils guiUtils)
-
checkName
protected boolean checkName(String name)
-
checkCommandSanity
protected boolean checkCommandSanity(org.harctoolbox.girr.Command command)
-
clearComment
public void clearComment()
-
uniquifyNames
public void uniquifyNames(String separator)
-
getColumnClass
public final Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
columnName
public final String columnName(int i)
-
isUsedColumn
public boolean isUsedColumn(int column)
-
isAllEqualColumn
public boolean isAllEqualColumn(int column)
-
isInterestingColumn
public boolean isInterestingColumn(int column)
-
addSignal
protected void addSignal(NamedIrSignal cir)
-
getAndResetScrollRequest
public boolean getAndResetScrollRequest()
-
validRow
public boolean validRow(int row)
-
isCellEditable
public final boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classDefaultTableModel
-
toPrintString
public String toPrintString(int modelRow)
For debugging purposes only.- Parameters:
modelRow
-- Returns:
- nicely formatted String.
-
-