src/share/classes/java/awt/event/MouseWheelEvent.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 25,35 **** package java.awt.event; import java.awt.Component; ! import javax.tools.annotation.GenerateNativeHeader; /** * An event which indicates that the mouse wheel was rotated in a component. * <P> * A wheel mouse is a mouse which has a wheel in place of the middle button. --- 25,35 ---- package java.awt.event; import java.awt.Component; ! import java.lang.annotation.Native; /** * An event which indicates that the mouse wheel was rotated in a component. * <P> * A wheel mouse is a mouse which has a wheel in place of the middle button.
*** 97,125 **** * @see javax.swing.JScrollPane * @see javax.swing.JScrollPane#setWheelScrollingEnabled(boolean) * @since 1.4 */ - /* No native methods here, but the constants are needed in the supporting JNI code */ - @GenerateNativeHeader public class MouseWheelEvent extends MouseEvent { /** * Constant representing scrolling by "units" (like scrolling with the * arrow keys) * * @see #getScrollType */ ! public static final int WHEEL_UNIT_SCROLL = 0; /** * Constant representing scrolling by a "block" (like scrolling * with page-up, page-down keys) * * @see #getScrollType */ ! public static final int WHEEL_BLOCK_SCROLL = 1; /** * Indicates what sort of scrolling should take place in response to this * event, based on platform settings. Legal values are: * <ul> --- 97,123 ---- * @see javax.swing.JScrollPane * @see javax.swing.JScrollPane#setWheelScrollingEnabled(boolean) * @since 1.4 */ public class MouseWheelEvent extends MouseEvent { /** * Constant representing scrolling by "units" (like scrolling with the * arrow keys) * * @see #getScrollType */ ! @Native public static final int WHEEL_UNIT_SCROLL = 0; /** * Constant representing scrolling by a "block" (like scrolling * with page-up, page-down keys) * * @see #getScrollType */ ! @Native public static final int WHEEL_BLOCK_SCROLL = 1; /** * Indicates what sort of scrolling should take place in response to this * event, based on platform settings. Legal values are: * <ul>