Enum Class SheetType

java.lang.Object
java.lang.Enum<SheetType>
io.keikai.axyra.sheets.SheetType
All Implemented Interfaces:
Serializable, Comparable<SheetType>, Constable

public enum SheetType extends Enum<SheetType>
What kind of tab a Sheet is.

A workbook's sheet list is homogeneous in the file format (ECMA-376 Part 1 §18.2.20); the tab's real kind is carried by the relationship type of the part it points at — .../relationships/chartsheet (§12.3.2), .../relationships/dialogsheet (§12.3.7), and the Microsoft xlMacrosheet / xlIntlMacrosheet extensions for Excel-4.0 macro sheets.

This is a classification only: the engine models worksheet content, so reading a dialog or macro tab yields an empty grid rather than that tab's own body. It also does not survive a save — every tab is written back as an ordinary worksheet.

  • Enum Constant Details

    • WORKSHEET

      public static final SheetType WORKSHEET
      An ordinary worksheet.
    • CHART

      public static final SheetType CHART
      A full-page chart tab.
    • DIALOG

      public static final SheetType DIALOG
      A legacy Excel 5.0 dialog sheet.
    • MACRO_SHEET

      public static final SheetType MACRO_SHEET
      An Excel-4.0 macro sheet.
    • INTERNATIONAL_MACRO_SHEET

      public static final SheetType INTERNATIONAL_MACRO_SHEET
      An international Excel-4.0 macro sheet.
  • Method Details

    • values

      public static SheetType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SheetType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null