Interface DebuggerColumn<T>
-
- Type Parameters:
T- Java type of this column
- All Known Implementing Classes:
AddressColumn,BreakpointColumn,MnemoColumn,OpcodeColumn
public interface DebuggerColumn<T>Column in the debugger table.- See Also:
DebuggerTable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Class<T>getClassType()Gets class type of the column.default intgetDefaultWidth()Get default width of the column in pixels.java.lang.StringgetTitle()Gets title of the column.TgetValue(int location)Gets a value from the column cell.booleanisEditable()Determines whether this column is editable by user.voidsetValue(int location, java.lang.Object value)Set a value to a column cell.
-
-
-
Method Detail
-
getClassType
java.lang.Class<T> getClassType()
Gets class type of the column.- Returns:
- Java type of this column
-
getTitle
java.lang.String getTitle()
Gets title of the column.- Returns:
- title of this column
-
isEditable
boolean isEditable()
Determines whether this column is editable by user. For example, a "mnemo" column shouldn't be editable, but "breakpoint" column can (and should). Note that the returned value holds to all cells in the column.- Returns:
- true if the column is editable, false otherwise
-
setValue
void setValue(int location, java.lang.Object value) throws CannotSetDebuggerValueExceptionSet a value to a column cell. It is called by emuStudio when user sets a value to a cell in the debugger table. It is used only if the column is editable (seeisEditablemethod). NOTE: This method should ensure proper changes in CPU's internal state, if necessary.- Parameters:
location- Cell index (usually memory address). It is not a "row number" in the debugger table.value- new value assigned to the cell- Throws:
CannotSetDebuggerValueException- if the value cannot be assigned, for any reason
-
getValue
T getValue(int location)
Gets a value from the column cell. It is called by emuStudio when rendering the debugger table.- Parameters:
location- Cell index (usually memory address). It is not a "row number" in the debugger table.- Returns:
- cell value
-
getDefaultWidth
default int getDefaultWidth()
Get default width of the column in pixels. If it is not known, this method should return -1.- Returns:
- default width of the column in pixels or -1 if it is not known
-
-