@Test public void testMouseWheel() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Boolean> callable = new CallableWithArgs<Boolean>() { public Boolean call(Object... args) { invoked[0] = true; return false; } }; assertNull(adapter.getMouseWheel()); adapter.mouseWheel(null, null, 0, 0, 0, 0); assertFalse(invoked[0]); adapter.setMouseWheel(callable); adapter.mouseWheel(null, null, 0, 0, 0, 0); assertTrue(invoked[0]); adapter.setMouseWheel(new CallableWithArgs<Boolean>() { public Boolean call(Object... args) { invoked[0] = true; return true; } }); adapter.mouseWheel(null, null, 0, 0, 0, 0); assertTrue(invoked[0]); }
public boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5) { return mouseWheel != null && mouseWheel.call(arg0, arg1, arg2, arg3, arg4, arg5); }
ComponentMouseWheelAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentMouseWheelListener { public boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5) { return mouseWheel != null && mouseWheel.call(arg0, arg1, arg2, arg3, arg4, arg5); } }
ComponentMouseWheelAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentMouseWheelListener { public boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5) { return mouseWheel != null && mouseWheel.call(arg0, arg1, arg2, arg3, arg4, arg5); }  }
ComponentMouseWheelAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentMouseWheelListener { public boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5) { return mouseWheel != null && mouseWheel.call(arg0, arg1, arg2, arg3, arg4, arg5); }  CallableWithArgs<Boolean> getMouseWheel(); void setMouseWheel(CallableWithArgs<Boolean> mouseWheel); boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5); }
ComponentMouseWheelAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ComponentMouseWheelListener { public boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5) { return mouseWheel != null && mouseWheel.call(arg0, arg1, arg2, arg3, arg4, arg5); }  CallableWithArgs<Boolean> getMouseWheel(); void setMouseWheel(CallableWithArgs<Boolean> mouseWheel); boolean mouseWheel(org.apache.pivot.wtk.Component arg0, org.apache.pivot.wtk.Mouse.ScrollType arg1, int arg2, int arg3, int arg4, int arg5);  }