com.levigo.jadice.printer.event
Enum PrintEvent.PrintEventType

java.lang.Object
  extended by java.lang.Enum<PrintEvent.PrintEventType>
      extended by com.levigo.jadice.printer.event.PrintEvent.PrintEventType
All Implemented Interfaces:
Serializable, Comparable<PrintEvent.PrintEventType>
Enclosing class:
PrintEvent

public static enum PrintEvent.PrintEventType
extends Enum<PrintEvent.PrintEventType>


Enum Constant Summary
ABORTED
          Print job aborted.
ERROR
          A PrintEvent of this type will be propagated, when the print job fails or another problem occurs.
FINISHED
          A PrintEvent of this type will be propagated, when the print job finished successfully.
PAGE
          A PrintEvent of this type will be propagated, every time a page of the document is printed.
PREPARATION
          The print process preparation started.
STARTED
          Print job processing started.
 
Method Summary
static PrintEvent.PrintEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PrintEvent.PrintEventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PREPARATION

public static final PrintEvent.PrintEventType PREPARATION
The print process preparation started.

This is the very early entry point before a print process begin. It is before any pre-conditional print settings are collected and therefore before the pageformat and printer dialog will be shown.


STARTED

public static final PrintEvent.PrintEventType STARTED
Print job processing started.

A PrintEvent of this type will be propagated, when all pre-conditional print settings, like a page format defined with over a page format dialog, are collected and the execution of the print job started.


PAGE

public static final PrintEvent.PrintEventType PAGE
A PrintEvent of this type will be propagated, every time a page of the document is printed.


FINISHED

public static final PrintEvent.PrintEventType FINISHED
A PrintEvent of this type will be propagated, when the print job finished successfully.


ABORTED

public static final PrintEvent.PrintEventType ABORTED
Print job aborted.

A PrintEvent of this type will be propagated, when the print job is canceled by the user.


ERROR

public static final PrintEvent.PrintEventType ERROR
A PrintEvent of this type will be propagated, when the print job fails or another problem occurs.

Method Detail

values

public static PrintEvent.PrintEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PrintEvent.PrintEventType c : PrintEvent.PrintEventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PrintEvent.PrintEventType 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


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.