Package ghidra.util.table
Class PreviewTableCellData
- java.lang.Object
-
- ghidra.util.table.PreviewTableCellData
-
- All Implemented Interfaces:
java.lang.Comparable<PreviewTableCellData>
public class PreviewTableCellData extends java.lang.Object implements java.lang.Comparable<PreviewTableCellData>
A generic data type used by table models in order to signal that the data should render a preview for a givenProgramLocation
, where the preview is what is displayed in the Listing.
-
-
Constructor Summary
Constructors Constructor Description PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PreviewTableCellData data)
java.lang.String
getDisplayString()
Get the preview for the code unit at or containing the address associated with this cell's row.java.lang.String
getHTMLDisplayString()
Get the preview as HTML for the code unit at or containing the address associated with this cell's row.ProgramLocation
getProgramLocation()
boolean
isOffcut()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PreviewTableCellData
public PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat)
Constructor- Parameters:
location
- the location for the previewcodeUnitFormat
- the format needed to render preview data
-
-
Method Detail
-
isOffcut
public boolean isOffcut()
-
getDisplayString
public java.lang.String getDisplayString()
Get the preview for the code unit at or containing the address associated with this cell's row.- Returns:
- the preview string.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getHTMLDisplayString
public java.lang.String getHTMLDisplayString()
Get the preview as HTML for the code unit at or containing the address associated with this cell's row.- Returns:
- the preview string.
-
getProgramLocation
public ProgramLocation getProgramLocation()
-
compareTo
public int compareTo(PreviewTableCellData data)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PreviewTableCellData>
-
-