All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.comm.ParallelPortEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----javax.comm.ParallelPortEvent

public class ParallelPortEvent
extends EventObject
A parallel port event.

See Also:
ParallelPort, ParallelPortEventListener, EventObject

Variable Index

 o eventType
For compatibility with version 1.0 of the CommAPI only. Deprecated.
 o PAR_EV_BUFFER
The port's output buffer is empty.
 o PAR_EV_ERROR
An error occurred on the port.

Constructor Index

 o ParallelPortEvent(ParallelPort, int, boolean, boolean)
Constructs a ParallelPortEvent with the specified parallel port, event type, old and new values.

Method Index

 o getEventType()
Gets the type of this event.
 o getNewValue()
Gets the new value of the state change that caused the ParallelPortEvent to be propagated.
 o getOldValue()
Gets the old value of the state change that caused the ParallelPortEvent to be propagated.

Variables

 o eventType
 public int eventType
Note: eventType is deprecated. Replaced by getEventType method.

For compatibility with version 1.0 of the CommAPI only.

 o PAR_EV_ERROR
 public static final int PAR_EV_ERROR
An error occurred on the port.

 o PAR_EV_BUFFER
 public static final int PAR_EV_BUFFER
The port's output buffer is empty.

Constructors

 o ParallelPortEvent
 public ParallelPortEvent(ParallelPort srcport,
                          int eventtype,
                          boolean oldvalue,
                          boolean newvalue)
Constructs a ParallelPortEvent with the specified parallel port, event type, old and new values. Application programs should not directly create ParallelPortEvent objects.

Parameters:
srcport - source parallel port
eventtype - event type
oldvalue - old value
newvalue - new value

Methods

 o getEventType
 public int getEventType()
Gets the type of this event.

Returns:
integer that can be either PAR_EV_ERROR or PAR_EV_BUFFER
 o getNewValue
 public boolean getNewValue()
Gets the new value of the state change that caused the ParallelPortEvent to be propagated.

 o getOldValue
 public boolean getOldValue()
Gets the old value of the state change that caused the ParallelPortEvent to be propagated.


All Packages  Class Hierarchy  This Package  Previous  Next  Index