Class AddressColumn
- java.lang.Object
-
- net.emustudio.emulib.runtime.interaction.debugger.AddressColumn
-
- All Implemented Interfaces:
DebuggerColumn<java.lang.String>
public class AddressColumn extends java.lang.Object implements DebuggerColumn<java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description AddressColumn()Create new instance of the address column.AddressColumn(java.lang.String addressFormat)Create new instance of the address column.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<java.lang.String>getClassType()Gets class type of the column.intgetDefaultWidth()Get default width of the column in pixels.java.lang.StringgetTitle()Gets title of the column.java.lang.StringgetValue(int location)Return formatted address into hexadecimal digit, aligned to 4 digits.booleanisEditable()Determines whether this column is editable by user.voidsetValue(int location, java.lang.Object value)Has no effect.
-
-
-
Constructor Detail
-
AddressColumn
public AddressColumn()
Create new instance of the address column.Address format is
"%04X".
-
AddressColumn
public AddressColumn(java.lang.String addressFormat)
Create new instance of the address column.- Parameters:
addressFormat- Address format used for callingString.format()
-
-
Method Detail
-
getClassType
public java.lang.Class<java.lang.String> getClassType()
Description copied from interface:DebuggerColumnGets class type of the column.- Specified by:
getClassTypein interfaceDebuggerColumn<java.lang.String>- Returns:
- Java type of this column
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DebuggerColumnGets title of the column.- Specified by:
getTitlein interfaceDebuggerColumn<java.lang.String>- Returns:
- title of this column
-
isEditable
public boolean isEditable()
Description copied from interface:DebuggerColumnDetermines 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.- Specified by:
isEditablein interfaceDebuggerColumn<java.lang.String>- Returns:
- true if the column is editable, false otherwise
-
setValue
public void setValue(int location, java.lang.Object value)Has no effect.- Specified by:
setValuein interfaceDebuggerColumn<java.lang.String>- Parameters:
location- memory address (not row in debug table)value- new value of the cell
-
getValue
public java.lang.String getValue(int location)
Return formatted address into hexadecimal digit, aligned to 4 digits.- Specified by:
getValuein interfaceDebuggerColumn<java.lang.String>- Parameters:
location- memory address (not row in debug table)- Returns:
- String value with formatted address
-
getDefaultWidth
public int getDefaultWidth()
Description copied from interface:DebuggerColumnGet default width of the column in pixels. If it is not known, this method should return -1.- Specified by:
getDefaultWidthin interfaceDebuggerColumn<java.lang.String>- Returns:
- default width of the column in pixels or -1 if it is not known
-
-