1.0.0

javax.comm
Class SerialPortEvent

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

public class SerialPortEvent
extends java.util.EventObject

Version:
1.0.0
See Also:
Serialized Form

Field Summary
static int BI
          Define the bi (int) constant.
static int CD
          Define the cd (int) constant.
static int CTS
          Define the cts (int) constant.
static int DATA_AVAILABLE
          Define the data available (int) constant.
static int DSR
          Define the dsr (int) constant.
 int eventType
          Define the event type (int) field.
static int FE
          Define the fe (int) constant.
static int OE
          Define the oe (int) constant.
static int OUTPUT_BUFFER_EMPTY
          Define the output buffer empty (int) constant.
static int PE
          Define the pe (int) constant.
static int RI
          Define the ri (int) constant.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SerialPortEvent(SerialPort 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

DATA_AVAILABLE

public static final int DATA_AVAILABLE
Define the data available (int) constant.

See Also:
Constant Field Values

OUTPUT_BUFFER_EMPTY

public static final int OUTPUT_BUFFER_EMPTY
Define the output buffer empty (int) constant.

See Also:
Constant Field Values

CTS

public static final int CTS
Define the cts (int) constant.

See Also:
Constant Field Values

DSR

public static final int DSR
Define the dsr (int) constant.

See Also:
Constant Field Values

RI

public static final int RI
Define the ri (int) constant.

See Also:
Constant Field Values

CD

public static final int CD
Define the cd (int) constant.

See Also:
Constant Field Values

OE

public static final int OE
Define the oe (int) constant.

See Also:
Constant Field Values

PE

public static final int PE
Define the pe (int) constant.

See Also:
Constant Field Values

FE

public static final int FE
Define the fe (int) constant.

See Also:
Constant Field Values

BI

public static final int BI
Define the bi (int) constant.

See Also:
Constant Field Values

eventType

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

Constructor Detail

SerialPortEvent

public SerialPortEvent(SerialPort 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 (SerialPort) 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