JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Class JCPrintEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.page.JCPrintEvent
All Implemented Interfaces:
Serializable

public class JCPrintEvent
extends EventObject

Encapsulates notification of printing events.

See Also:
Serialized Form

Field Summary
static int BEGIN_PAGE
           
static int CLOSE_DOCUMENT
           
static int END_PAGE
           
protected  int eventId
          The identifier indicating the event that has occurred.
static int OPEN_DOCUMENT
           
protected  int pageNumber
          The page number related to this event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCPrintEvent(com.klg.jclass.page.JCPrinter source, int eventId)
          Encapsulates notification of printing events.
JCPrintEvent(com.klg.jclass.page.JCPrinter source, int eventId, int pageNumber)
          Encapsulates notification of printing events.
 
Method Summary
 int getEventId()
          Returns the eventId.
 int getPageNumber()
          Returns the page number, or -1 if not applicable.
 
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

BEGIN_PAGE

public static final int BEGIN_PAGE
See Also:
Constant Field Values

END_PAGE

public static final int END_PAGE
See Also:
Constant Field Values

OPEN_DOCUMENT

public static final int OPEN_DOCUMENT
See Also:
Constant Field Values

CLOSE_DOCUMENT

public static final int CLOSE_DOCUMENT
See Also:
Constant Field Values

eventId

protected int eventId
The identifier indicating the event that has occurred.


pageNumber

protected int pageNumber
The page number related to this event.

Constructor Detail

JCPrintEvent

public JCPrintEvent(com.klg.jclass.page.JCPrinter source,
                    int eventId)
Encapsulates notification of printing events.

Parameters:
source - the JCPrinter sending this event
eventId - the type of event being sent

JCPrintEvent

public JCPrintEvent(com.klg.jclass.page.JCPrinter source,
                    int eventId,
                    int pageNumber)
Encapsulates notification of printing events.

Parameters:
source - the JCPrinter sending this event
eventId - the type of event being sent
pageNumber - the page number related to this event
Method Detail

getPageNumber

public int getPageNumber()
Returns the page number, or -1 if not applicable.

Returns:
the page number related to this event

getEventId

public int getEventId()
Returns the eventId.

Returns:
the type of event

Copyright © 2004 Quest Software Inc..
All rights reserved.