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.

HSSFColumnShifter.java 2.5KB

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