Class CefWindowHandlerAdapter

  • All Implemented Interfaces:
    CefWindowHandler

    public abstract class CefWindowHandlerAdapter
    extends java.lang.Object
    implements CefWindowHandler
    An abstract adapter class for receiving windowed render events. The methods in this class are empty. This class exists as convenience for creating handler objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Rectangle getRect​(CefBrowser browser)
      Retrieve the view rectangle.
      void onMouseEvent​(CefBrowser browser, int event, int screenX, int screenY, int modifier, int button)
      Implement this method to handle mouse events on Windows.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CefWindowHandlerAdapter

        public CefWindowHandlerAdapter()
    • Method Detail

      • getRect

        public java.awt.Rectangle getRect​(CefBrowser browser)
        Description copied from interface: CefWindowHandler
        Retrieve the view rectangle.
        Specified by:
        getRect in interface CefWindowHandler
        Parameters:
        browser - The browser generating the event.
        Returns:
        The view rectangle.
      • onMouseEvent

        public void onMouseEvent​(CefBrowser browser,
                                 int event,
                                 int screenX,
                                 int screenY,
                                 int modifier,
                                 int button)
        Description copied from interface: CefWindowHandler
        Implement this method to handle mouse events on Windows. The method is called in case of the following events: MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED and MOUSE_WHEEL for a horizontal wheel movement.
        Specified by:
        onMouseEvent in interface CefWindowHandler
        Parameters:
        browser - The browser generating the event.
        event - A mouse event like MouseEvent.MOUSE_MOVED.
        screenX - The absolute X position on the screen.
        screenY - The absolute Y position on the screen.
        modifier - The modifier keys down during event (e.g. Shift, Ctrl).
        button - An integer indicating which mouse button state changed. If parameter event is set to MouseEvent.MOUSE_WHEEL, the value of this parameter specifies the rotation indicator (negative value for left scroll and positive value for right scroll).