Interface CefDisplayHandler

  • All Known Implementing Classes:
    CefClient, CefDisplayHandlerAdapter

    public interface CefDisplayHandler
    Implement this interface to handle events related to browser display state. The methods of this class will be called on the UI thread.
    • Method Detail

      • onAddressChange

        void onAddressChange​(CefBrowser browser,
                             CefFrame frame,
                             java.lang.String url)
        Handle address changes.
        Parameters:
        browser - The browser generating the event.
        frame - The frame generating the event.
        url - The new address.
      • onTitleChange

        void onTitleChange​(CefBrowser browser,
                           java.lang.String title)
        Handle title changes.
        Parameters:
        browser - The browser generating the event.
        title - The new title.
      • onTooltip

        boolean onTooltip​(CefBrowser browser,
                          java.lang.String text)
        Called when the browser is about to display a tooltip.
        Parameters:
        browser - The browser generating the event.
        text - Contains the text that will be displayed in the tooltip.
        Returns:
        To handle the display of the tooltip yourself return true.
      • onStatusMessage

        void onStatusMessage​(CefBrowser browser,
                             java.lang.String value)
        Called when the browser receives a status message.
        Parameters:
        browser - The browser generating the event.
        value - Contains the text that will be displayed in the status message.
      • onConsoleMessage

        boolean onConsoleMessage​(CefBrowser browser,
                                 CefSettings.LogSeverity level,
                                 java.lang.String message,
                                 java.lang.String source,
                                 int line)
        Called to display a console message.
        Parameters:
        browser - The browser generating the event.
        level -
        message -
        source -
        line -
        Returns:
        true to stop the message from being output to the console.