|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
javax.comm.ParallelPortEvent
A parallel port event.
ParallelPort,
ParallelPortEventListener,
EventObject,
Serialized Form| Field Summary | |
int |
eventType
Deprecated. Replaced by getEventType method. |
static int |
PAR_EV_BUFFER
The port's output buffer is empty. |
static int |
PAR_EV_ERROR
An error occurred on the port. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
ParallelPortEvent(ParallelPort srcport,
int eventtype,
boolean oldvalue,
boolean newvalue)
Constructs a ParallelPortEvent
with the specified parallel port, event type, old and new values. |
|
| Method Summary | |
int |
getEventType()
Gets the type of this event. |
boolean |
getNewValue()
Gets the new value of the state change that caused the ParallelPortEvent to be propagated. |
boolean |
getOldValue()
Gets the old value of the state change that caused the ParallelPortEvent to be propagated. |
| 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 |
public int eventType
getEventType method.
public static final int PAR_EV_ERROR
public static final int PAR_EV_BUFFER
| Constructor Detail |
public ParallelPortEvent(ParallelPort srcport,
int eventtype,
boolean oldvalue,
boolean newvalue)
ParallelPortEvent
with the specified parallel port, event type, old and new values.
Application programs should not directly create
ParallelPortEvent objects.
srcport - source parallel porteventtype - event typeoldvalue - old valuenewvalue - new value| Method Detail |
public int getEventType()
PAR_EV_ERROR
or PAR_EV_BUFFERpublic boolean getNewValue()
ParallelPortEvent to be propagated.
public boolean getOldValue()
ParallelPortEvent to be propagated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||