com.objex.panywhere
Class PedigreePrintEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.objex.panywhere.PedigreePrintEvent
All Implemented Interfaces:
java.io.Serializable

public class PedigreePrintEvent
extends java.util.EventObject

Defines an PedigreePrintEventevent An event which is generated every time a new print job is created within the Pedigree.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PedigreePrintEvent(java.lang.Object source)
          Creates a new instance of PedigreePrintEvent.
PedigreePrintEvent(java.lang.Object source, int ai_page)
          Creates a new instance of PedigreePrintEvent.
 
Method Summary
 int getPage()
          Returns the page number for which the event was generated.
 
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
 

Constructor Detail

PedigreePrintEvent

public PedigreePrintEvent(java.lang.Object source)
Creates a new instance of PedigreePrintEvent.

Parameters:
source - The pedigree instance that is the source of all print jobs

PedigreePrintEvent

public PedigreePrintEvent(java.lang.Object source,
                          int ai_page)
Creates a new instance of PedigreePrintEvent.

Parameters:
source - The pedigree instance that is the source of all print jobs
ai_page - The page number for which the event is being generated. This constructor is used for events used to track the printing progress through page numbers
Method Detail

getPage

public int getPage()
Returns the page number for which the event was generated. If no page numbers have been generated, a value of -1 is returned otherwise a one (1) based page number is returned.