Class 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 given ProgramLocation, where the preview is what is displayed in the Listing.
    • Constructor Detail

      • PreviewTableCellData

        public PreviewTableCellData​(ProgramLocation location,
                                    CodeUnitFormat codeUnitFormat)
        Constructor
        Parameters:
        location - the location for the preview
        codeUnitFormat - 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 class java.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.