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 ControlPanelm_Ownerthe 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 voidaddBreakpoint(AbstractBreakpoint value)Returns the breakpoint at the specified location.voidclearBreakpoints()Removes all breakpoints.AbstractBreakpointgetBreakpointAt(int rowIndex)Returns the breakpoint at the specified location.Class<?>getColumnClass(int columnIndex)Returns the class for the specified column.intgetColumnCount()Returns the number of columns.StringgetColumnName(int column)Returns the name of the column.intgetRowCount()Returns the number of breakpoints.ObjectgetValueAt(int rowIndex, int columnIndex)Returns the cell value at the specified location.booleanisCellEditable(int rowIndex, int columnIndex)Returns whether a cell is editable.voidrefresh()Triggers an update.AbstractBreakpointremoveBreakpointAt(int rowIndex)Removes the breakpoint at the specified location.voidsetBreakpointAt(int rowIndex, AbstractBreakpoint value)Sets the breakpoint at the specified location.voidsetValueAt(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:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein 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:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel- Parameters:
columnIndex- the index- Returns:
- the class
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)Returns whether a cell is editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein 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:
setValueAtin interfaceTableModel- Overrides:
setValueAtin 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.
-
-