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 intcompareTo(PreviewTableCellData data)java.lang.StringgetDisplayString()Get the preview for the code unit at or containing the address associated with this cell's row.java.lang.StringgetHTMLDisplayString()Get the preview as HTML for the code unit at or containing the address associated with this cell's row.ProgramLocationgetProgramLocation()booleanisOffcut()java.lang.StringtoString()
-
-
-
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:
toStringin 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:
compareToin interfacejava.lang.Comparable<PreviewTableCellData>
-
-