Enum ExportFormat

java.lang.Object
java.lang.Enum<ExportFormat>
com.smartgwt.client.types.ExportFormat
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<ExportFormat>, Constable

public enum ExportFormat extends Enum<ExportFormat> implements ValueEnum
One of the supported formats for data-export. If you are doing a client export to one of the native spreadsheet formats (xls or ooxml), we also export hilite-based coloring. So, if Hilites are causing a particular cell to be rendered as green text on a blue background, the corresponding cell in the exported spreadsheet document will also be colored that way.
  • Enum Constant Details

    • XML

      public static final ExportFormat XML
      Export data as XML records

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "xml".

    • JSON

      public static final ExportFormat JSON
      Export data as JSON objects. Not allowed as a client-side option.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "json".

    • CSV

      public static final ExportFormat CSV
      Export data in comma-separated format

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "csv".

    • XLS

      public static final ExportFormat XLS
      Export data in native Microsoft Excel 97 format

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "xls".

    • OOXML

      public static final ExportFormat OOXML
      Export data in native Microsoft Excel 2007 format (also called XLSX)

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "ooxml".

    • CUSTOM

      public static final ExportFormat CUSTOM
      Custom server-side logic will do the export

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "custom".

  • Method Details

    • values

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

      public static ExportFormat valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Specified by:
      getValue in interface ValueEnum