com.ibm.as400.access
Class PrintObjectListEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.ibm.as400.access.PrintObjectListEvent
All Implemented Interfaces:
Serializable

public class PrintObjectListEvent
extends EventObject

The PrintObjectListEvent class represents a PrintObjectList event.

See Also:
PrintObjectListListener, Serialized Form

Field Summary
Modifier and Type Field and Description
static int CLOSED
          The print object list closed event ID.
static int COMPLETED
          The print object list completed event ID.
static int ERROR_OCCURRED
          The print object list exception occurred event ID.
static int OBJECT_ADDED
          The print object list object added event ID.
static int OPENED
          The print object list opened event ID.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Constructor and Description
PrintObjectListEvent(Object source, Exception e)
          Constructs an PrintObjectListEvent object.
PrintObjectListEvent(Object source, int id)
          Constructs an PrintObjectListEvent object.
PrintObjectListEvent(Object source, PrintObject printObject)
          Constructs an PrintObjectListEvent object.
 
Method Summary
Modifier and Type Method and Description
 Exception getException()
          Returns the exception that occurred while retrieving the list.
 int getID()
          Returns the print object list event identifier.
 PrintObject getObject()
          Returns the print object added to the list.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOSED

public static final int CLOSED
The print object list closed event ID.

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
The print object list completed event ID.

See Also:
Constant Field Values

ERROR_OCCURRED

public static final int ERROR_OCCURRED
The print object list exception occurred event ID.

See Also:
Constant Field Values

OPENED

public static final int OPENED
The print object list opened event ID.

See Also:
Constant Field Values

OBJECT_ADDED

public static final int OBJECT_ADDED
The print object list object added event ID.

See Also:
Constant Field Values
Constructor Detail

PrintObjectListEvent

public PrintObjectListEvent(Object source,
                            int id)
Constructs an PrintObjectListEvent object. It uses the specified source and ID.

Parameters:
source - The object sourcing the event.
id - The event identifier.

PrintObjectListEvent

public PrintObjectListEvent(Object source,
                            Exception e)
Constructs an PrintObjectListEvent object. It uses the specified source and exception.

Parameters:
source - The object sourcing the event.
e - The exception that occurred while retrieving the list.

PrintObjectListEvent

public PrintObjectListEvent(Object source,
                            PrintObject printObject)
Constructs an PrintObjectListEvent object. It uses the specified source and print object.

Parameters:
source - The object sourcing the event.
printObject - The print object that was added to the list.
Method Detail

getException

public Exception getException()
Returns the exception that occurred while retrieving the list. If there was no exception, null is returned.

Returns:
The exception that occurred while retrieving the list.

getID

public int getID()
Returns the print object list event identifier.

Returns:
The event identifier.

getObject

public PrintObject getObject()
Returns the print object added to the list. If an object was not added to the list for this event, null is returned.

Returns:
The print object added to the list.