Package org.spdx.spreadsheetstore.ods
Class OdsComment
java.lang.Object
org.spdx.spreadsheetstore.ods.OdsComment
- All Implemented Interfaces:
org.apache.poi.ss.usermodel.Comment
Adapter for Apache POI
Comment over SODS OfficeAnnotation.-
Constructor Summary
ConstructorsConstructorDescriptionOdsComment(com.github.miachm.sods.OfficeAnnotation annotation) Creates an ODS comment wrapping an existing SODS OfficeAnnotation.OdsComment(String text) Creates an ODS comment with specified text content. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.util.CellAddressorg.apache.poi.ss.usermodel.ClientAnchorintintgetRow()org.apache.poi.ss.usermodel.RichTextStringbooleanvoidsetAddress(int row, int col) voidsetAddress(org.apache.poi.ss.util.CellAddress address) voidvoidsetColumn(int col) voidsetRow(int row) voidvoidsetString(org.apache.poi.ss.usermodel.RichTextString string) voidsetVisible(boolean visible)
-
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
Creates an ODS comment with specified text content.- Parameters:
text- Comment text.
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceorg.apache.poi.ss.usermodel.Comment
-
isVisible
public boolean isVisible()- Specified by:
isVisiblein interfaceorg.apache.poi.ss.usermodel.Comment
-
getAddress
public org.apache.poi.ss.util.CellAddress getAddress()- Specified by:
getAddressin interfaceorg.apache.poi.ss.usermodel.Comment
-
setAddress
public void setAddress(org.apache.poi.ss.util.CellAddress address) - Specified by:
setAddressin interfaceorg.apache.poi.ss.usermodel.Comment
-
setAddress
public void setAddress(int row, int col) - Specified by:
setAddressin interfaceorg.apache.poi.ss.usermodel.Comment
-
getRow
public int getRow()- Specified by:
getRowin interfaceorg.apache.poi.ss.usermodel.Comment
-
setRow
public void setRow(int row) - Specified by:
setRowin interfaceorg.apache.poi.ss.usermodel.Comment
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceorg.apache.poi.ss.usermodel.Comment
-
setColumn
public void setColumn(int col) - Specified by:
setColumnin interfaceorg.apache.poi.ss.usermodel.Comment
-
getAuthor
- Specified by:
getAuthorin interfaceorg.apache.poi.ss.usermodel.Comment
-
setAuthor
- Specified by:
setAuthorin interfaceorg.apache.poi.ss.usermodel.Comment
-
getString
public org.apache.poi.ss.usermodel.RichTextString getString()- Specified by:
getStringin interfaceorg.apache.poi.ss.usermodel.Comment
-
setString
public void setString(org.apache.poi.ss.usermodel.RichTextString string) - Specified by:
setStringin interfaceorg.apache.poi.ss.usermodel.Comment
-
setString
-
getClientAnchor
public org.apache.poi.ss.usermodel.ClientAnchor getClientAnchor()- Specified by:
getClientAnchorin interfaceorg.apache.poi.ss.usermodel.Comment
-