com.twainconnect.core
Interface TwainEventListener

All Superinterfaces:
java.util.EventListener

public interface TwainEventListener
extends java.util.EventListener

Add to the tagging interface that all event listener interfaces must extend. Clients will receive the image once the user has acquired the image and the device has transferred the Bitmap to the JVM

Since:
3.0
Version:
5.0.1
Author:
twainconnect

Method Summary
 void twainCapabilityNotSet(TwainEvent e)
          Simialr to a warning.
 void twainCapabilitySet(TwainEvent e)
          Opposite of a warning.
 void twainImageCaptured(TwainEvent e)
          The image has arrived from the device to your client interface
 void twainImageCapturedFailed(TwainEvent e)
          Rather than throwing an exception listeners are informed of the failure.
 

Method Detail

twainImageCaptured

void twainImageCaptured(TwainEvent e)
The image has arrived from the device to your client interface

Parameters:
e - TwainEvent

twainImageCapturedFailed

void twainImageCapturedFailed(TwainEvent e)
Rather than throwing an exception listeners are informed of the failure. This new interface was included so the core could still close out the Datasource and not expect the caller to close everything also there are many reasons for a device to fail and this client can continue or ignore the failed events

Parameters:
e -

twainCapabilitySet

void twainCapabilitySet(TwainEvent e)
Opposite of a warning. The capability was supported and the API is letting you know

Parameters:
e -

twainCapabilityNotSet

void twainCapabilityNotSet(TwainEvent e)
Simialr to a warning. The capability was not supported and the API isletting you know

Parameters:
e -