DotNetBrowser  1.14
Public Member Functions | Protected Attributes | List of all members
DotNetBrowser.WPF.WPFDefaultDialogHandler Class Reference

Represents default implementation of the DialogHandler that will display an appropriate UI modal dialog for each method. All dialog texts are localized with English language. If you need to support other languages or localize the dialogs, please consider using your own implementation of the DialogHandler. More...

Inherits DotNetBrowser.DialogHandler.

Public Member Functions

 WPFDefaultDialogHandler (UIElement component)
 Constructs WPFDefaultDialogHandler instance. More...
 
virtual void OnAlert (DialogParams parameters)
 This method is invoked when JavaScript alert dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More...
 
virtual CloseStatus OnConfirmation (DialogParams parameters)
 This method is invoked when JavaScript confirmation dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More...
 
virtual CloseStatus OnPrompt (PromptDialogParams parameters)
 This method is invoked when JavaScript prompt dialog should be displayed. In this method you can display standard modal dialog with the message and with text field with default prompt text that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More...
 
virtual CloseStatus OnFileChooser (FileChooserParams parameters)
 This method is invoked when file selection is to be done. You can use this method to display a file chooser dialog with the required type that you can find out from the FileChooserMode. More...
 
virtual CloseStatus OnBeforeUnload (UnloadDialogParams parameters)
 This method is invoked before web page unload. Some web page may override the window.onbeforeunload JavaScript function, so that a confirmation dialog will be shown every time when user try to reload web page or navigate to another web page. You can use this method to display an appropriate confirmation message dialog to ask user whether he or she really wants to leave or reload the web page. More...
 
virtual CloseStatus OnSelectCertificate (CertificatesDialogParams parameters)
 This method is invoked when web server requires authorization via SSL client certificate. The end user must select one of the provided certificates. More...
 
virtual CloseStatus OnReloadPostData (ReloadPostDataParams parameters)
 This method is invoked when attempt to reload a web page that has POST data and the user must confirm whether POST data must be sent again or reload must be canceled. More...
 
virtual CloseStatus OnColorChooser (ColorChooserParams parameters)
 This method is invoked when color selection is to be done, when user selects HTML5 input element with color type. You can use this method to display a color chooser dialog. More...
 

Protected Attributes

UIElement component
 Owner UI component. More...
 

Detailed Description

Represents default implementation of the DialogHandler that will display an appropriate UI modal dialog for each method. All dialog texts are localized with English language. If you need to support other languages or localize the dialogs, please consider using your own implementation of the DialogHandler.

Constructor & Destructor Documentation

DotNetBrowser.WPF.WPFDefaultDialogHandler.WPFDefaultDialogHandler ( UIElement  component)

Constructs WPFDefaultDialogHandler instance.

Parameters
component

Member Function Documentation

virtual void DotNetBrowser.WPF.WPFDefaultDialogHandler.OnAlert ( DialogParams  parameters)
virtual

This method is invoked when JavaScript alert dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.

Parameters
parametersThe alert dialog parameters.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnBeforeUnload ( UnloadDialogParams  parameters)
virtual

This method is invoked before web page unload. Some web page may override the window.onbeforeunload JavaScript function, so that a confirmation dialog will be shown every time when user try to reload web page or navigate to another web page. You can use this method to display an appropriate confirmation message dialog to ask user whether he or she really wants to leave or reload the web page.

Parameters
parametersThe unload dialog parameters such as dialog message and reload flag.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnColorChooser ( ColorChooserParams  parameters)
virtual

This method is invoked when color selection is to be done, when user selects HTML5 input element with color type. You can use this method to display a color chooser dialog.

Parameters
parametersThe color chooser dialog parameters.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnConfirmation ( DialogParams  parameters)
virtual

This method is invoked when JavaScript confirmation dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.

Parameters
parametersThe confirmation dialog parameters.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnFileChooser ( FileChooserParams  parameters)
virtual

This method is invoked when file selection is to be done. You can use this method to display a file chooser dialog with the required type that you can find out from the FileChooserMode.

Parameters
parametersThe file chooser dialog parameters such as dialog mode, etc.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnPrompt ( PromptDialogParams  parameters)
virtual

This method is invoked when JavaScript prompt dialog should be displayed. In this method you can display standard modal dialog with the message and with text field with default prompt text that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.

Parameters
parametersThe prompt dialog parameters such as dialog message and default prompt text.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnReloadPostData ( ReloadPostDataParams  parameters)
virtual

This method is invoked when attempt to reload a web page that has POST data and the user must confirm whether POST data must be sent again or reload must be canceled.

Parameters
parametersThe reload dialog parameters.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

virtual CloseStatus DotNetBrowser.WPF.WPFDefaultDialogHandler.OnSelectCertificate ( CertificatesDialogParams  parameters)
virtual

This method is invoked when web server requires authorization via SSL client certificate. The end user must select one of the provided certificates.

Parameters
parametersUse it to get information about SSL authorization request, get a list of available certificates and select the required one.
Returns
The CloseStatus.OK when dialog was closed successfully or CloseStatus.CANCEL when dialog was canceled.

Implements DotNetBrowser.DialogHandler.

Member Data Documentation

UIElement DotNetBrowser.WPF.WPFDefaultDialogHandler.component
protected

Owner UI component.