com.ibm.eNetwork.ECL.screenreco.event
Interface ECLCustomRecoListener
- public interface ECLCustomRecoListener
This interface can be implemented to extend the base ECLScreenReco screen
matching logic. It is essentially a user exit for screen recognition.
If an ECLSDCustom object is contained in an ECLScreenDesc object that
is registered with ECLScreenReco, the ECLScreenReco object will do its
normal pattern matching first, then call out to the custom recognition
listener's doReco method for final approval. Here, the implementor of
the doReco method can do any custom matching against the screen that is
necessary.
These are the steps you should follow to use this interface correctly:
- Define a class which implements the ECLCustomRecoListener interface.
- Implement the doReco method
- Create an instance of the new class.
- Create an instance of the ECLScreenDesc class.
- Add any normal screen descriptors that you with to the ECLScreenDesc object.
- Create an instance of ECLSDCustom.
- Add the object that implements the doReco method to the ECLSDCustom object using the setListener method.
- Add the custom descriptor to the ECLScreenDesc object.
- Register the instance of the ECLScreenDesc object with the ECLScreenReco.RegisterScreen method.
- See Also:
ECLScreenReco
,
ECLScreenDesc
,
ECLCustomRecoEvent
,
ECLSDCustom
Method Summary |
boolean |
DoReco(ECLCustomRecoEvent e)
Called when an ECLScreenReco object has successfully completed the normal
matching logic for a screen and needs approval from a custom recognition
listener. |
DoReco
public boolean DoReco(ECLCustomRecoEvent e)
- Called when an ECLScreenReco object has successfully completed the normal
matching logic for a screen and needs approval from a custom recognition
listener. Return true if you pass the screen and false if you do not.
- Parameters:
e
- custom recognition event object- See Also:
ECLCustomRecoEvent