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.

IExcelAntWorkbookHandler.java 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.excelant;
  16. import org.apache.poi.ss.usermodel.Workbook;
  17. /**
  18. * In Excel there are many ways to handle manipulating a workbook based
  19. * on some arbitrary user action (onChange, etc). You use this interface
  20. * to create classes that will handle the workbook in whatever manner is needed
  21. * that cannot be handled by POI.
  22. * <p>
  23. * For example, suppose that in Excel when you update a cell the workbook
  24. * does some calculations and updates other cells based on that change. In
  25. * ExcelAnt you would set the value of the cell then write your own handler
  26. * then call that from your Ant task after the set task.
  27. *
  28. * @author Jon Svede ( jon [at] loquatic [dot] com )
  29. * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
  30. *
  31. */
  32. public interface IExcelAntWorkbookHandler {
  33. public void setWorkbook( Workbook workbook ) ;
  34. public void execute() ;
  35. }