From d9fba0ea89ae71ce29fb528593fee24707b896ad Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 17 Oct 2013 18:02:07 +0200 Subject: Regression of commit a90bf31f8747dd38c61d518f8af4d4d4a64a8e90: 'consumeEvent(Event ..)' must be protected and non-final Overriding by impl. class allowed. --- src/newt/classes/jogamp/newt/WindowImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 656bca6bc..dcb811b97 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -2784,7 +2784,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer * - dispatch event to listener * */ - private final void consumePointerEvent(MouseEvent pe) { + protected void consumePointerEvent(MouseEvent pe) { int x = pe.getX(); int y = pe.getY(); @@ -3124,7 +3124,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer return e.isConsumed(); } - private final void consumeKeyEvent(KeyEvent e) { + protected void consumeKeyEvent(KeyEvent e) { boolean consumedE = false; if( null != keyboardFocusHandler && !e.isAutoRepeat() ) { consumedE = propagateKeyEvent(e, keyboardFocusHandler); @@ -3203,7 +3203,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer return windowListeners.toArray(new WindowListener[windowListeners.size()]); } - private final void consumeWindowEvent(WindowEvent e) { + protected void consumeWindowEvent(WindowEvent e) { if(DEBUG_IMPLEMENTATION) { System.err.println("consumeWindowEvent: "+e+", visible "+isVisible()+" "+getX()+"/"+getY()+" "+getWidth()+"x"+getHeight()); } -- cgit v1.2.3