Package org.cef.handler
Class CefWindowHandlerAdapter
- java.lang.Object
-
- org.cef.handler.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.
-
-
Constructor Summary
Constructors Constructor Description CefWindowHandlerAdapter()
-
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.
-
-
-
Method Detail
-
getRect
public java.awt.Rectangle getRect(CefBrowser browser)
Description copied from interface:CefWindowHandler
Retrieve the view rectangle.- Specified by:
getRect
in interfaceCefWindowHandler
- 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 interfaceCefWindowHandler
- 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).
-
-