1.0.0

javax.comm
Class ParallelPortEvent

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

public class ParallelPortEvent
extends java.util.EventObject

Version:
1.0.0
See Also:
Serialized Form

Field Summary
 int eventType
          Define the event type (int) field.
static int PAR_EV_BUFFER
          Define the par ev buffer (int) constant.
static int PAR_EV_ERROR
          Define the par ev error (int) constant.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParallelPortEvent(ParallelPort srcport, int eventtype, boolean oldvalue, boolean newvalue)
          Constructs an instance of this class from the specified srcport, eventtype, oldvalue and newvalue parameters.
 
Method Summary
 int getEventType()
          Gets the event type (int) value.
 boolean getNewValue()
          Gets the new value (boolean) value.
 boolean getOldValue()
          Gets the old value (boolean) value.
 
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

PAR_EV_ERROR

public static final int PAR_EV_ERROR
Define the par ev error (int) constant.

See Also:
Constant Field Values

PAR_EV_BUFFER

public static final int PAR_EV_BUFFER
Define the par ev buffer (int) constant.

See Also:
Constant Field Values

eventType

public int eventType
Define the event type (int) field.

Constructor Detail

ParallelPortEvent

public ParallelPortEvent(ParallelPort srcport,
                         int eventtype,
                         boolean oldvalue,
                         boolean newvalue)
Constructs an instance of this class from the specified srcport, eventtype, oldvalue and newvalue parameters.

Parameters:
srcport - The srcport (ParallelPort) parameter.
eventtype - The eventtype (int) parameter.
oldvalue - The oldvalue (boolean) parameter.
newvalue - The newvalue (boolean) parameter.
Method Detail

getEventType

public int getEventType()
Gets the event type (int) value.

Returns:
The event type (int) value.

getNewValue

public boolean getNewValue()
Gets the new value (boolean) value.

Returns:
The new value (boolean) value.

getOldValue

public boolean getOldValue()
Gets the old value (boolean) value.

Returns:
The old value (boolean) value.

1.0.0

Copyright (c) 1999, 2007 IBM