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.

PrintCellComments.java 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. /**
  17. * These enumerations specify how cell comments shall be displayed for paper printing purposes.
  18. *
  19. * @author Gisella Bronzetti
  20. */
  21. public enum PrintCellComments {
  22. /**
  23. * Do not print cell comments.
  24. */
  25. NONE(1),
  26. /**
  27. * Print cell comments as displayed.
  28. */
  29. AS_DISPLAYED(2),
  30. /**
  31. * Print cell comments at end of document.
  32. */
  33. AT_END(3);
  34. private int comments;
  35. private PrintCellComments(int comments) {
  36. this.comments = comments;
  37. }
  38. public int getValue() {
  39. return comments;
  40. }
  41. private static PrintCellComments[] _table = new PrintCellComments[4];
  42. static {
  43. for (PrintCellComments c : values()) {
  44. _table[c.getValue()] = c;
  45. }
  46. }
  47. public static PrintCellComments valueOf(int value){
  48. return _table[value];
  49. }
  50. }