comm
Class ParallelPortEvent

java.lang.Object
  extended by java.util.EventObject
      extended by comm.ParallelPortEvent
All Implemented Interfaces:
java.io.Serializable

public class ParallelPortEvent
extends java.util.EventObject

An event on a parallel port.

Version:
2.0.3
Author:
Chris Burdess
See Also:
Serialized Form

Field Summary
 int eventType
          Deprecated. Replaced by getEventType method. For compatibility only.
static int PAR_EV_BUFFER
          The output buffer is empty.
static int PAR_EV_ERROR
          An error occurred.
 
Constructor Summary
ParallelPortEvent(ParallelPortInterface srcport, int eventtype, boolean oldvalue, boolean newvalue)
          Constructor.
 
Method Summary
 int getEventType()
          Returns the type of event: PAR_EV_ERROR or PAR_EV_BUFFER
 boolean getNewValue()
          Returns the new value of the state change that caused this event.
 boolean getOldValue()
          Returns the old value of the state change that caused this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eventType

public int eventType
Deprecated. Replaced by getEventType method. For compatibility only.

PAR_EV_ERROR

public static final int PAR_EV_ERROR
An error occurred.

See Also:
Constant Field Values

PAR_EV_BUFFER

public static final int PAR_EV_BUFFER
The output buffer is empty.

See Also:
Constant Field Values
Constructor Detail

ParallelPortEvent

public ParallelPortEvent(ParallelPortInterface srcport,
                         int eventtype,
                         boolean oldvalue,
                         boolean newvalue)
Constructor. This should only be called by the port driver.

Parameters:
srcport - the source port
eventtype - the event type: PAR_EV_ERROR or PAR_EV_BUFFER
oldvalue - the old value
newvalue - the new value
Method Detail

getEventType

public int getEventType()
Returns the type of event: PAR_EV_ERROR or PAR_EV_BUFFER


getNewValue

public boolean getNewValue()
Returns the new value of the state change that caused this event.


getOldValue

public boolean getOldValue()
Returns the old value of the state change that caused this event.