anon.pay
Interface IPaymentListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AccountSettingsPanel, CaptchaContentPane, PaymentMainPanel.MyPaymentListener

public interface IPaymentListener
extends java.util.EventListener

GUI classes can implement this interface and register with the Payment library to be notified about payment specific events

Version:
1.0
Author:
Bastian Voigt, Tobias Bayer

Method Summary
 void accountActivated(PayAccount acc)
          The active account changed.
 void accountAdded(PayAccount acc)
          An account was added
 int accountCertRequested(MixCascade a_connectedCascade)
          The AI has signaled that the current cascade has to be payed for.
 void accountError(XMLErrorMessage msg, boolean a_bIgnore)
          The AI has signaled an error.
 void accountRemoved(PayAccount acc)
          An account was removed
 void creditChanged(PayAccount acc)
          The credit changed for the given account.
 void gotCaptcha(ICaptchaSender a_source, IImageEncodedCaptcha a_captcha)
          Captcha retrieved
 

Method Detail

accountCertRequested

int accountCertRequested(MixCascade a_connectedCascade)
The AI has signaled that the current cascade has to be payed for.

Parameters:
acc - PayAccount

accountError

void accountError(XMLErrorMessage msg,
                  boolean a_bIgnore)
The AI has signaled an error.

Parameters:
acc - PayAccount
a_bIgnore - do not force a user reaction

accountActivated

void accountActivated(PayAccount acc)
The active account changed.

Parameters:
acc - PayAccount the account which is becoming active

accountRemoved

void accountRemoved(PayAccount acc)
An account was removed

Parameters:
acc - PayAccount the account which was removed

accountAdded

void accountAdded(PayAccount acc)
An account was added

Parameters:
acc - PayAccount the new Account

creditChanged

void creditChanged(PayAccount acc)
The credit changed for the given account.

Parameters:
acc - PayAccount

gotCaptcha

void gotCaptcha(ICaptchaSender a_source,
                IImageEncodedCaptcha a_captcha)
Captcha retrieved