< prev index next >

src/java.desktop/share/classes/java/awt/event/MouseEvent.java

Print this page

        

@@ -731,10 +731,11 @@
      * @see Toolkit#areExtraMouseButtonsEnabled()
      * @see java.awt.MouseInfo#getNumberOfButtons()
      * @see InputEvent#getMaskForButton(int)
      * @since 1.6
      */
+    @SuppressWarnings("deprecation")
     public MouseEvent(Component source, int id, long when, int modifiers,
                       int x, int y, int xAbs, int yAbs,
                       int clickCount, boolean popupTrigger, int button)
     {
         super(source, id, when, modifiers);

@@ -941,10 +942,11 @@
      * @return string   string text description of the combination of modifier
      *                  keys and mouse buttons that were down during the event
      * @see InputEvent#getModifiersExText(int)
      * @since 1.4
      */
+    @SuppressWarnings("deprecation")
     public static String getMouseModifiersText(int modifiers) {
         StringBuilder buf = new StringBuilder();
         if ((modifiers & InputEvent.ALT_MASK) != 0) {
             buf.append(Toolkit.getProperty("AWT.alt", "Alt"));
             buf.append("+");

@@ -1005,10 +1007,11 @@
      * Returns a parameter string identifying this event.
      * This method is useful for event-logging and for debugging.
      *
      * @return a string identifying the event and its attributes
      */
+    @SuppressWarnings("deprecation")
     public String paramString() {
         StringBuilder str = new StringBuilder(80);
 
         switch(id) {
           case MOUSE_PRESSED:

@@ -1064,10 +1067,11 @@
 
     /**
      * Sets new modifiers by the old ones.
      * Also sets button.
      */
+    @SuppressWarnings("deprecation")
     private void setNewModifiers() {
         if ((modifiers & BUTTON1_MASK) != 0) {
             modifiers |= BUTTON1_DOWN_MASK;
         }
         if ((modifiers & BUTTON2_MASK) != 0) {

@@ -1118,10 +1122,11 @@
     }
 
     /**
      * Sets old modifiers by the new ones.
      */
+    @SuppressWarnings("deprecation")
     private void setOldModifiers() {
         if (id == MOUSE_PRESSED
             || id == MOUSE_RELEASED
             || id == MOUSE_CLICKED)
         {

@@ -1166,10 +1171,11 @@
 
     /**
      * Sets new modifiers by the old ones.
      * @serial
      */
+    @SuppressWarnings("deprecation")
     private void readObject(ObjectInputStream s)
       throws IOException, ClassNotFoundException {
         s.defaultReadObject();
         if (getModifiers() != 0 && getModifiersEx() == 0) {
             setNewModifiers();
< prev index next >