Class PreviewTableCellData

java.lang.Object
ghidra.util.table.PreviewTableCellData
All Implemented Interfaces:
Comparable<PreviewTableCellData>

public class PreviewTableCellData extends Object implements Comparable<PreviewTableCellData>
A generic data type used by table models in order to signal that the data should render a preview for a given ProgramLocation, where the preview is what is displayed in the Listing.
  • Constructor Details

    • PreviewTableCellData

      public PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat)
      Constructor
      Parameters:
      location - the location for the preview
      codeUnitFormat - the format needed to render preview data
  • Method Details

    • isOffcut

      public boolean isOffcut()
    • getDisplayString

      public 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 String toString()
      Overrides:
      toString in class Object
    • getHTMLDisplayString

      public 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 interface Comparable<PreviewTableCellData>