From c0ece5ebd634662f99f3217bb749e2c4795f9de6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 11 Jun 2010 00:14:35 +0200 Subject: NEWT Add: addListener(int index, Listener l) ; getListener(int index) ; NEWTEvent attachments NEWT Add: addListener(int index, Listener l) ; getListener(int index) ; NEWTEvent attachments for listener to listener communication via object passing. This methodology is similar to the 'Atom' attachment of native systems. It is preferred to a 'consume()/isConsumed()' pattern, since it is less flexible and would 'endanger' system events. TODO: Listener[] getListeners() doesn't work and was always buggy. --- src/newt/classes/com/jogamp/newt/Window.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes/com') diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index 9e338c94b..045a5eb72 100755 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -1164,7 +1164,7 @@ public abstract class Window implements NativeWindow } } - public MouseListener getWindowListener(int index) { + public MouseListener getMouseListener(int index) { synchronized(mouseListeners) { if(0>index) { index = mouseListeners.size()-1; -- cgit v1.2.3