Class BreakpointTableModel

    • 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
      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Returns whether a cell is editable.
        Specified by:
        isCellEditable in interface TableModel
        Overrides:
        isCellEditable in class AbstractTableModel
        Parameters:
        rowIndex - the row, i.e., breakpoint
        columnIndex - 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 interface TableModel
        Overrides:
        setValueAt in class AbstractTableModel
        Parameters:
        aValue - the value to set
        rowIndex - the row, i.e., the breakpoint
        columnIndex - the column
      • getValueAt

        public Object getValueAt​(int rowIndex,
                                 int columnIndex)
        Returns the cell value at the specified location.
        Parameters:
        rowIndex - the row, i.e., breakpoint
        columnIndex - 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 row
        value - 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.