com.webrenderer.event
Class PrintEvent
java.lang.Object
java.util.EventObject
com.webrenderer.event.PrintEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class PrintEvent
- extends java.util.EventObject
An event which indicates that there has been a Printer event.
Currently, a PrintEvent
will be invoked if a Printing
status message arises.
To reduce the cost of multiple method invocations, the event object will
record the new data pertaining to the event.
- See Also:
- Serialized Form
Constructor Summary |
PrintEvent(java.lang.Object source,
int Stat)
Constructor for PrintEvent with a source. |
Method Summary |
int |
getStatus()
Returns the status. |
void |
setStatus(int status)
Sets the status. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STATUS_PRINT_UNDEFINED
public static final int STATUS_PRINT_UNDEFINED
- See Also:
- Constant Field Values
STATUS_PRINT_START
public static final int STATUS_PRINT_START
- See Also:
- Constant Field Values
STATUS_PRINT_CANCEL
public static final int STATUS_PRINT_CANCEL
- See Also:
- Constant Field Values
PrintEvent
public PrintEvent(java.lang.Object source,
int Stat)
- Constructor for PrintEvent with a source.
- See Also:
EventObject.EventObject(Object)
getStatus
public int getStatus()
- Returns the status.
- Returns:
- int
setStatus
public void setStatus(int status)
- Sets the status.
- Parameters:
status
- The status to set