Enum Presentation.Format

java.lang.Object
java.lang.Enum<Presentation.Format>
com.codename1.presentation.Presentation.Format
All Implemented Interfaces:
Comparable<Presentation.Format>
Enclosing class:
Presentation

public static enum Presentation.Format extends Enum<Presentation.Format>
The formats a presentation is read from and written to.
  • Enum Constant Details

    • NATIVE

      public static final Presentation.Format NATIVE
      Codename One's own .cn1slides: a ZIP holding presentation.xml, with each text box in the .cn1doc vocabulary. Keeps everything the model holds, diagrams included.
    • PPTX

      public static final Presentation.Format PPTX
      Office Open XML, the format of PowerPoint 2007 and later. Reads and writes shapes with preset geometry, fills, outlines and arrowheads, text with layout and master placeholder inheritance, pictures with cropping, tables with merged cells, groups, charts, speaker notes, transitions and entrance/exit animations. A diagram is written as a group of shapes.
    • ODP

      public static final Presentation.Format ODP
      OpenDocument presentation, the format of LibreOffice Impress and Keynote's export. Reads and writes the same features as PPTX.
    • KEY

      public static final Presentation.Format KEY
      Apple Keynote 2013 and later (.key). Read only: slides, text boxes and placeholders with their text, shapes, pictures and speaker notes are read from the package's archived objects. What cannot be decoded is listed in getWarnings().
    • PPT

      public static final Presentation.Format PPT
      PowerPoint 97-2003 (.ppt). Read only: text, shapes, pictures, notes and slide backgrounds.
    • PDF

      public static final Presentation.Format PDF
      PDF, one page per visible slide. Write only.
  • Method Details

    • values

      public static Presentation.Format[] 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 Presentation.Format 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
    • extension

      public String extension()

      The file extension without a dot.

      Returns

      the extension

    • canRead

      public boolean canRead()

      True when a presentation can be read from this format.

      Returns

      true when readable

    • canWrite

      public boolean canWrite()

      True when a presentation can be written in this format.

      Returns

      true when writable

    • forFileName

      public static Presentation.Format forFileName(String fileName)

      The format a file name's extension names, ignoring case.

      Parameters
      • fileName: the name
      Returns

      the format, or null when the extension is not a presentation format