Class PasswordDialog
java.lang.Object
com.levigo.jadice.web.demo.common.client.ui.PasswordDialog
Dialog which can be shown if a password is needed to open a document.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPasswordDialog(PageView pageView, PasswordContainingSource source) Creates a newPasswordDialogwhich can then be displayed in the givenPageViewand which will set the password to the givenPasswordContainingSource -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Abort the password dialog.voidAdds the password given as parameter to thisPasswordDialogs source, appends the source to aReaderand callsReader.read(com.levigo.jadice.web.shared.model.Source, AsyncCallback).voidsetAsyncCallback(AsyncCallback<Document> callback) set theAsyncCallbackto be triggered when the password has been entered.voidshow()Shows thePasswordDialogin the pageView which has been defined in the constructor and sets the focus to the PasswordDialog.
-
Constructor Details
-
Method Details
-
setAsyncCallback
set theAsyncCallbackto be triggered when the password has been entered.- Parameters:
callback- theAsyncCallbackto be called once the password has been entered and confirmed.
-
execute
Adds the password given as parameter to thisPasswordDialogs source, appends the source to aReaderand callsReader.read(com.levigo.jadice.web.shared.model.Source, AsyncCallback).- Parameters:
password- the password to be used in the source the Reader shall use.
-
abort
public void abort()Abort the password dialog. This will call theAsyncCallbacks onFailure()-method passing on aThrowablewith a text indicating that the password dialog has been aborted. -
show
public void show()Shows thePasswordDialogin the pageView which has been defined in the constructor and sets the focus to the PasswordDialog.
-