|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.vity.freerapid.plugimpl.StandardDialogSupportImpl
public class StandardDialogSupportImpl
Standard implementation of DialogSupport
Constructor Summary | |
---|---|
StandardDialogSupportImpl(org.jdesktop.application.ApplicationContext context)
Constructor - creates a new StandardDialogSupportImpl instance. |
Method Summary | |
---|---|
String |
askForCaptcha(BufferedImage image)
Shows default simple input dialog for getting input from user. |
PremiumAccount |
showAccountDialog(PremiumAccount account,
String title)
Method shows simple input dialog with username and password fields and OK/Cancel buttons |
boolean |
showOKCancelDialog(Component container,
String title)
Shows simple OK/Cancel dialog with given content of given container |
void |
showOKDialog(Component container,
String title)
Shows simple dialog with OK button with given content of given container |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardDialogSupportImpl(org.jdesktop.application.ApplicationContext context)
context
- application contextMethod Detail |
---|
public PremiumAccount showAccountDialog(PremiumAccount account, String title) throws Exception
DialogSupport
showAccountDialog
in interface DialogSupport
account
- object with data about username and passwordtitle
- title for dialog - usually plugin's name
Exception
- if something went wrongpublic boolean showOKCancelDialog(Component container, String title) throws Exception
DialogSupport
showOKCancelDialog
in interface DialogSupport
container
- a container with SWING components to showtitle
- title for dialog
Exception
- if something went wrong or thread was interruptedpublic void showOKDialog(Component container, String title) throws Exception
DialogSupport
showOKDialog
in interface DialogSupport
container
- a container with SWING components to showtitle
- title for dialog
Exception
- if something went wrong or thread was interruptedpublic String askForCaptcha(BufferedImage image) throws Exception
DialogSupport
askForCaptcha
in interface DialogSupport
image
- CAPTCHA image to show user
Exception
- if something went wrong or thread was interrupted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |