Class OdsComment

java.lang.Object
org.spdx.spreadsheetstore.ods.OdsComment
All Implemented Interfaces:
org.apache.poi.ss.usermodel.Comment

public class OdsComment extends Object implements org.apache.poi.ss.usermodel.Comment
Adapter for Apache POI Comment over SODS OfficeAnnotation.
  • Constructor Details

    • OdsComment

      public OdsComment(com.github.miachm.sods.OfficeAnnotation annotation)
      Creates an ODS comment wrapping an existing SODS OfficeAnnotation.
      Parameters:
      annotation - Underlying SODS OfficeAnnotation instance.
    • OdsComment

      public OdsComment(String text)
      Creates an ODS comment with specified text content.
      Parameters:
      text - Comment text.
  • Method Details

    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface org.apache.poi.ss.usermodel.Comment
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface org.apache.poi.ss.usermodel.Comment
    • getAddress

      public org.apache.poi.ss.util.CellAddress getAddress()
      Specified by:
      getAddress in interface org.apache.poi.ss.usermodel.Comment
    • setAddress

      public void setAddress(org.apache.poi.ss.util.CellAddress address)
      Specified by:
      setAddress in interface org.apache.poi.ss.usermodel.Comment
    • setAddress

      public void setAddress(int row, int col)
      Specified by:
      setAddress in interface org.apache.poi.ss.usermodel.Comment
    • getRow

      public int getRow()
      Specified by:
      getRow in interface org.apache.poi.ss.usermodel.Comment
    • setRow

      public void setRow(int row)
      Specified by:
      setRow in interface org.apache.poi.ss.usermodel.Comment
    • getColumn

      public int getColumn()
      Specified by:
      getColumn in interface org.apache.poi.ss.usermodel.Comment
    • setColumn

      public void setColumn(int col)
      Specified by:
      setColumn in interface org.apache.poi.ss.usermodel.Comment
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in interface org.apache.poi.ss.usermodel.Comment
    • setAuthor

      public void setAuthor(String author)
      Specified by:
      setAuthor in interface org.apache.poi.ss.usermodel.Comment
    • getString

      public org.apache.poi.ss.usermodel.RichTextString getString()
      Specified by:
      getString in interface org.apache.poi.ss.usermodel.Comment
    • setString

      public void setString(org.apache.poi.ss.usermodel.RichTextString string)
      Specified by:
      setString in interface org.apache.poi.ss.usermodel.Comment
    • setString

      public void setString(String string)
    • getClientAnchor

      public org.apache.poi.ss.usermodel.ClientAnchor getClientAnchor()
      Specified by:
      getClientAnchor in interface org.apache.poi.ss.usermodel.Comment