|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--cork.device.AbstractDevice
All devices should use this base class.
| Constructor Summary | |
AbstractDevice()
Constructor for the AbstractDevice object |
|
| Method Summary | |
void |
addEventListener(DeviceEventListener listener)
This is a convenience method to allow a listener to add itself to the event queue in order to be notified of an event. |
void |
removeEventListener(DeviceEventListener listener)
This is a convenience method to allow listener to remove itself from the event queue so that it no longer receives events. |
protected void |
sendDeviceEvent(DeviceEvent event)
This method sends an event out to all classes who are listening for events in the VM. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cork.device.Device |
getDeviceDestription, getDeviceName |
| Constructor Detail |
public AbstractDevice()
| Method Detail |
protected final void sendDeviceEvent(DeviceEvent event)
event - Description of Parameterpublic final void addEventListener(DeviceEventListener listener)
listener - cork.event.DeviceEventListener The listener to be added.public final void removeEventListener(DeviceEventListener listener)
listener - cork.event.DeviceEventListener The listener to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||