You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Comment.java 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.ss.usermodel;
  16. public interface Comment {
  17. /**
  18. * Returns whether this comment is visible.
  19. *
  20. * @param visible <code>true</code> if the comment is visible, <code>false</code> otherwise
  21. */
  22. void setVisible(boolean visible);
  23. /**
  24. * Sets whether this comment is visible.
  25. *
  26. * @return <code>true</code> if the comment is visible, <code>false</code> otherwise
  27. */
  28. boolean isVisible();
  29. /**
  30. * Return the row of the cell that contains the comment
  31. *
  32. * @return the 0-based row of the cell that contains the comment
  33. */
  34. int getRow();
  35. /**
  36. * Set the row of the cell that contains the comment
  37. *
  38. * @param row the 0-based row of the cell that contains the comment
  39. */
  40. void setRow(int row);
  41. /**
  42. * Return the column of the cell that contains the comment
  43. *
  44. * @return the 0-based column of the cell that contains the comment
  45. */
  46. int getColumn();
  47. /**
  48. * Set the column of the cell that contains the comment
  49. *
  50. * @param col the 0-based column of the cell that contains the comment
  51. */
  52. void setColumn(int col);
  53. /**
  54. * Name of the original comment author
  55. *
  56. * @return the name of the original author of the comment
  57. */
  58. String getAuthor();
  59. /**
  60. * Name of the original comment author
  61. *
  62. * @param author the name of the original author of the comment
  63. */
  64. void setAuthor(String author);
  65. /**
  66. * Fetches the rich text string of the comment
  67. */
  68. public RichTextString getString();
  69. /**
  70. * Sets the rich text string used by this comment.
  71. *
  72. * @param string Sets the rich text string used by this object.
  73. */
  74. void setString(RichTextString string);
  75. }