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.

HtmlHelper.java 711B

1234567891011121314151617181920212223
  1. package org.apache.poi.ss.examples.html;
  2. import org.apache.poi.ss.usermodel.CellStyle;
  3. import java.util.Formatter;
  4. /**
  5. * This interface is used where code wants to be independent of the workbook
  6. * formats. If you are writing such code, you can add a method to this
  7. * interface, and then implement it for both HSSF and XSSF workbooks, letting
  8. * the driving code stay independent of format.
  9. *
  10. * @author Ken Arnold, Industrious Media LLC
  11. */
  12. public interface HtmlHelper {
  13. /**
  14. * Outputs the appropriate CSS style for the given cell style.
  15. *
  16. * @param style The cell style.
  17. * @param out The place to write the output.
  18. */
  19. void colorStyles(CellStyle style, Formatter out);
  20. }