Enum Class DuplexMode

java.lang.Object
java.lang.Enum<DuplexMode>
com.deltawalker.script.DuplexMode
All Implemented Interfaces:
Serializable, Comparable<DuplexMode>, Constable

public enum DuplexMode extends Enum<DuplexMode>
Represents the duplex mode a printer might possibly support.
Since:
2.0
  • Enum Constant Details

    • DEFAULT

      public static final DuplexMode DEFAULT
      This printer's default duplex value
    • LONG_EDGE

      public static final DuplexMode LONG_EDGE
      Double-sided printing as if bound on the long edge
    • NONE

      public static final DuplexMode NONE
      Single-sided printing
    • SHORT_EDGE

      public static final DuplexMode SHORT_EDGE
      Double-sided printing as if bound 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