Enum Class DuplexMode

java.lang.Object
java.lang.Enum<DuplexMode>
com.teamdev.jxbrowser.print.DuplexMode
All Implemented Interfaces:
Serializable, Comparable<DuplexMode>, Constable

public enum DuplexMode extends Enum<DuplexMode>
Defines which sides of the paper sheet should be used for printing.
  • Enum Constant Details

    • UNKNOWN

      public static final DuplexMode UNKNOWN
      The duplex mode is unknown.
    • SIMPLEX

      public static final DuplexMode SIMPLEX
      One-sided printing.
    • LONG_EDGE

      public static final DuplexMode LONG_EDGE
      Two-sided printing, flipping on the long edge.
    • SHORT_EDGE

      public static final DuplexMode SHORT_EDGE
      Two-sided printing, flipping on the short edge.
  • Method Details

    • values

      public static DuplexMode[] 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 DuplexMode 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