Documentation of 'org.apache.poi.hssf.usermodel.HSSFComment' Java class
HSSFComment
org.apache.poi.hssf.usermodel

Class HSSFComment

  • All Implemented Interfaces:
    Comment


    public class HSSFComment
    extends HSSFTextbox
    implements Comment
    Represents a cell comment - a sticky note associated with a cell.
    • Method Detail

      • setVisible

        public void setVisible(boolean visible)
        Returns whether this comment is visible.
        Specified by:
        setVisible in interface Comment
        Parameters:
        visible - true if the comment is visible, false otherwise
      • isVisible

        public boolean isVisible()
        Sets whether this comment is visible.
        Specified by:
        isVisible in interface Comment
        Returns:
        true if the comment is visible, false otherwise
      • getRow

        public int getRow()
        Return the row of the cell that contains the comment
        Specified by:
        getRow in interface Comment
        Returns:
        the 0-based row of the cell that contains the comment
      • setRow

        public void setRow(int row)
        Set the row of the cell that contains the comment
        Specified by:
        setRow in interface Comment
        Parameters:
        row - the 0-based row of the cell that contains the comment
      • getColumn

        public int getColumn()
        Return the column of the cell that contains the comment
        Specified by:
        getColumn in interface Comment
        Returns:
        the 0-based column of the cell that contains the comment
      • setColumn

        public void setColumn(int col)
        Set the column of the cell that contains the comment
        Specified by:
        setColumn in interface Comment
        Parameters:
        col - the 0-based column of the cell that contains the comment
      • setColumn

        @Deprecated
        public void setColumn(short col)
        Deprecated. (Nov 2009) use setColumn(int) }
      • getAuthor

        public java.lang.String getAuthor()
        Name of the original comment author
        Specified by:
        getAuthor in interface Comment
        Returns:
        the name of the original author of the comment
      • setAuthor

        public void setAuthor(java.lang.String author)
        Name of the original comment author
        Specified by:
        setAuthor in interface Comment
        Parameters:
        author - the name of the original author of the comment
      • hasPosition

        public boolean hasPosition()
        Do we know which cell this comment belongs to?
      • getClientAnchor

        public ClientAnchor getClientAnchor()
        Description copied from interface: Comment
        Return defines position of this anchor in the sheet.
        Specified by:
        getClientAnchor in interface Comment
        Returns:
        defines position of this anchor in the sheet
      • afterRemove

        public void afterRemove(HSSFPatriarch patriarch)
        Description copied from class: HSSFShape
        remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes
      • setBackgroundImage

        public void setBackgroundImage(int pictureIndex)
      • resetBackgroundImage

        public void resetBackgroundImage()
      • getBackgroundImageId

        public int getBackgroundImageId()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.