Class MyTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.mozilla.javascript.tools.debugger.MyTableModel
- All Implemented Interfaces:
Serializable, TableModel
Table model class for watched expressions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SwingGuiThe debugger GUI.List of watched expressions.private static final longSerializable magic number.List of values from evaluated fromexpressions.Fields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in the table (2).getColumnName(int column) Returns the name of the given column.intReturns the number of rows in the table.getValueAt(int row, int column) Returns the value in the given cell.booleanisCellEditable(int row, int column) Returns whether the given cell is editable.voidsetValueAt(Object value, int row, int column) Sets the value in the given cell.(package private) voidRe-evaluates the expressions in the table.Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable magic number.- See Also:
-
debugGui
The debugger GUI. -
expressions
-
values
List of values from evaluated fromexpressions.
-
-
Constructor Details
-
MyTableModel
Creates a new MyTableModel.
-
-
Method Details
-
getColumnCount
public int getColumnCount()Returns the number of columns in the table (2). -
getRowCount
public int getRowCount()Returns the number of rows in the table. -
getColumnName
Returns the name of the given column.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int column) Returns whether the given cell is editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
Returns the value in the given cell. -
setValueAt
Sets the value in the given cell.- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
updateModel
void updateModel()Re-evaluates the expressions in the table.
-