Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

HSSFRowShifter.java 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.hssf.usermodel.helpers;
  16. import org.apache.poi.hssf.usermodel.HSSFSheet;
  17. import org.apache.poi.ss.formula.FormulaShifter;
  18. import org.apache.poi.ss.formula.eval.NotImplementedException;
  19. import org.apache.poi.ss.usermodel.Row;
  20. import org.apache.poi.ss.usermodel.Sheet;
  21. import org.apache.poi.ss.usermodel.helpers.RowShifter;
  22. import org.apache.poi.util.NotImplemented;
  23. import org.apache.poi.util.POILogFactory;
  24. import org.apache.poi.util.POILogger;
  25. /**
  26. * Helper for shifting rows up or down
  27. */
  28. // non-Javadoc: When possible, code should be implemented in the RowShifter abstract class to avoid duplication with
  29. // {@link org.apache.poi.xssf.usermodel.helpers.XSSFRowShifter}
  30. public final class HSSFRowShifter extends RowShifter {
  31. private static final POILogger LOG = POILogFactory.getLogger(HSSFRowShifter.class);
  32. public HSSFRowShifter(HSSFSheet sh) {
  33. super(sh);
  34. }
  35. @Override
  36. @NotImplemented
  37. public void updateNamedRanges(FormulaShifter formulaShifter) {
  38. throw new NotImplementedException("HSSFRowShifter.updateNamedRanges");
  39. }
  40. @Override
  41. @NotImplemented
  42. public void updateFormulas(FormulaShifter formulaShifter) {
  43. throw new NotImplementedException("updateFormulas");
  44. }
  45. @Override
  46. @NotImplemented
  47. public void updateConditionalFormatting(FormulaShifter formulaShifter) {
  48. throw new NotImplementedException("updateConditionalFormatting");
  49. }
  50. @Override
  51. @NotImplemented
  52. public void updateHyperlinks(FormulaShifter formulaShifter) {
  53. throw new NotImplementedException("updateHyperlinks");
  54. }
  55. }