|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgui.dialog.DialogContentPane
gui.dialog.CaptchaContentPane
public class CaptchaContentPane
This class displays a dialog for solving a captcha.
| Nested Class Summary | |
|---|---|
private class |
CaptchaContentPane.MyDocument
|
| Nested classes/interfaces inherited from class gui.dialog.DialogContentPane |
|---|
DialogContentPane.CheckError, DialogContentPane.IWizardSuitable, DialogContentPane.IWizardSuitableNoWizardButtons, DialogContentPane.Layout |
| Field Summary | |
|---|---|
private java.lang.String |
m_beginsWith
|
private IImageEncodedCaptcha |
m_captcha
|
private ICaptchaSender |
m_captchaSource
|
private javax.swing.JLabel |
m_imageLabel
|
private byte[] |
m_solution
|
private java.lang.Object |
m_syncObject
|
private javax.swing.JTextField |
m_tfSolution
|
private static java.lang.String |
MSG_CAPTCHAERROR
|
private static java.lang.String |
MSG_SOLVE
|
private static java.lang.String |
MSG_TITLE
Messages |
private static java.lang.String |
MSG_WRONGCHARNUM
|
| Constructor Summary | |
|---|---|
CaptchaContentPane(JAPDialog a_parentDialog,
DialogContentPane a_previousContentPane)
|
|
| 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 |
DialogContentPane.CheckError[] |
checkCancel()
Is called when the "Cancel" button is clicked. |
DialogContentPane.CheckError[] |
checkNo()
Is called when the "No" or "Previous" button is clicked. |
DialogContentPane.CheckError[] |
checkYesOK()
Is called when the "Yes", "OK" or "Next" button is clicked. |
void |
creditChanged(PayAccount acc)
The credit changed for the given account. |
byte[] |
getSolution()
|
void |
gotCaptcha(ICaptchaSender a_source,
IImageEncodedCaptcha a_captcha)
Captcha retrieved |
boolean |
isSkippedAsNextContentPane()
If the previous content pane of this one calls moveToNextContentPane(), this content pane may tell him to skip it and move forward to the next one. |
boolean |
isSkippedAsPreviousContentPane()
If the next content pane of this one calls moveToPreviousContentPane(), this content pane may tell him to skip it and move forward to the next one. |
private void |
setCaptcha(IImageEncodedCaptcha a_captcha,
java.lang.String a_beginsWith)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String MSG_TITLE
private static final java.lang.String MSG_SOLVE
private static final java.lang.String MSG_WRONGCHARNUM
private static final java.lang.String MSG_CAPTCHAERROR
private javax.swing.JTextField m_tfSolution
private byte[] m_solution
private IImageEncodedCaptcha m_captcha
private java.lang.String m_beginsWith
private javax.swing.JLabel m_imageLabel
private java.lang.Object m_syncObject
private ICaptchaSender m_captchaSource
| Constructor Detail |
|---|
public CaptchaContentPane(JAPDialog a_parentDialog,
DialogContentPane a_previousContentPane)
| Method Detail |
|---|
public DialogContentPane.CheckError[] checkNo()
DialogContentPane null by default.
This method should never be called directly and is only used internally.
checkNo in class DialogContentPanepublic DialogContentPane.CheckError[] checkYesOK()
DialogContentPane null by default.
This method should never be called directly and is only used internally.
checkYesOK in class DialogContentPanepublic DialogContentPane.CheckError[] checkCancel()
DialogContentPane null by default.
This method should never be called directly and is only used internally.
checkCancel in class DialogContentPane
private void setCaptcha(IImageEncodedCaptcha a_captcha,
java.lang.String a_beginsWith)
public byte[] getSolution()
public void gotCaptcha(ICaptchaSender a_source,
IImageEncodedCaptcha a_captcha)
IPaymentListener
gotCaptcha in interface IPaymentListenerpublic boolean isSkippedAsNextContentPane()
DialogContentPane false by default but may be overwritten by subclasses.
isSkippedAsNextContentPane in class DialogContentPanepublic boolean isSkippedAsPreviousContentPane()
DialogContentPane false by default but may be overwritten by subclasses.
isSkippedAsPreviousContentPane in class DialogContentPanepublic int accountCertRequested(MixCascade a_connectedCascade)
IPaymentListener
accountCertRequested in interface IPaymentListener
public void accountError(XMLErrorMessage msg,
boolean a_bIgnore)
IPaymentListener
accountError in interface IPaymentListenera_bIgnore - do not force a user reactionpublic void accountActivated(PayAccount acc)
IPaymentListener
accountActivated in interface IPaymentListeneracc - PayAccount the account which is becoming activepublic void accountRemoved(PayAccount acc)
IPaymentListener
accountRemoved in interface IPaymentListeneracc - PayAccount the account which was removedpublic void accountAdded(PayAccount acc)
IPaymentListener
accountAdded in interface IPaymentListeneracc - PayAccount the new Accountpublic void creditChanged(PayAccount acc)
IPaymentListener
creditChanged in interface IPaymentListeneracc - PayAccount
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||