Package adams.flow.execution.debug
Class BreakpointTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- adams.gui.core.AbstractBaseTableModel
-
- adams.flow.execution.debug.BreakpointTableModel
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SpreadSheetSupporter
,Serializable
,TableModel
public class BreakpointTableModel extends AbstractBaseTableModel
Table model for displaying the current breakpoints.- Version:
- $Revision: 10983 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ControlPanel
m_Owner
the owner.-
Fields inherited from class adams.gui.core.AbstractBaseTableModel
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description BreakpointTableModel(ControlPanel owner)
Initializes the model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBreakpoint(AbstractBreakpoint value)
Returns the breakpoint at the specified location.void
clearBreakpoints()
Removes all breakpoints.AbstractBreakpoint
getBreakpointAt(int rowIndex)
Returns the breakpoint at the specified location.Class<?>
getColumnClass(int columnIndex)
Returns the class for the specified column.int
getColumnCount()
Returns the number of columns.String
getColumnName(int column)
Returns the name of the column.int
getRowCount()
Returns the number of breakpoints.Object
getValueAt(int rowIndex, int columnIndex)
Returns the cell value at the specified location.boolean
isCellEditable(int rowIndex, int columnIndex)
Returns whether a cell is editable.void
refresh()
Triggers an update.AbstractBreakpoint
removeBreakpointAt(int rowIndex)
Removes the breakpoint at the specified location.void
setBreakpointAt(int rowIndex, AbstractBreakpoint value)
Sets the breakpoint at the specified location.void
setValueAt(Object aValue, int rowIndex, int columnIndex)
Sets the cell value at the specified location.-
Methods inherited from class adams.gui.core.AbstractBaseTableModel
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, setLoggingLevel, toSpreadSheet, toString
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
m_Owner
protected ControlPanel m_Owner
the owner.
-
-
Constructor Detail
-
BreakpointTableModel
public BreakpointTableModel(ControlPanel owner)
Initializes the model.- Parameters:
owner
- the owning debug object
-
-
Method Detail
-
getRowCount
public int getRowCount()
Returns the number of breakpoints.- Returns:
- the number of breakpoints
-
getColumnCount
public int getColumnCount()
Returns the number of columns.- Returns:
- the number of columns
-
getColumnName
public String getColumnName(int column)
Returns the name of the column.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the index of the column- Returns:
- the name
-
getColumnClass
public Class<?> getColumnClass(int columnIndex)
Returns the class for the specified column.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
columnIndex
- the index- Returns:
- the class
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
Returns whether a cell is editable.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
- the row, i.e., breakpointcolumnIndex
- the column- Returns:
- true if editable
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
Sets the cell value at the specified location.- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
- Parameters:
aValue
- the value to setrowIndex
- the row, i.e., the breakpointcolumnIndex
- the column
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
Returns the cell value at the specified location.- Parameters:
rowIndex
- the row, i.e., breakpointcolumnIndex
- the column- Returns:
- the value
-
clearBreakpoints
public void clearBreakpoints()
Removes all breakpoints.
-
getBreakpointAt
public AbstractBreakpoint getBreakpointAt(int rowIndex)
Returns the breakpoint at the specified location.- Parameters:
rowIndex
- the row- Returns:
- the breakpoints
-
setBreakpointAt
public void setBreakpointAt(int rowIndex, AbstractBreakpoint value)
Sets the breakpoint at the specified location.- Parameters:
rowIndex
- the rowvalue
- the breakpoint
-
addBreakpoint
public void addBreakpoint(AbstractBreakpoint value)
Returns the breakpoint at the specified location.- Parameters:
value
- the breakpoint to add
-
removeBreakpointAt
public AbstractBreakpoint removeBreakpointAt(int rowIndex)
Removes the breakpoint at the specified location.- Parameters:
rowIndex
- the row- Returns:
- the breakpoint
-
refresh
public void refresh()
Triggers an update.
-
-