src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, 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

@@ -2914,10 +2914,11 @@
     /**
      * <code>TreeTraverseAction</code> is the action used for left/right keys.
      * Will toggle the expandedness of a node, as well as potentially
      * incrementing the selection.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreeTraverseAction extends AbstractAction {
         /** Determines direction to traverse, 1 means expand, -1 means
           * collapse. */
         protected int direction;
         /** True if the selection is reset, false means only the lead path

@@ -2946,10 +2947,11 @@
     } // BasicTreeUI.TreeTraverseAction
 
 
     /** TreePageAction handles page up and page down events.
       */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreePageAction extends AbstractAction {
         /** Specifies the direction to adjust the selection by. */
         protected int         direction;
         /** True indicates should set selection from anchor path. */
         private boolean       addToSelection;

@@ -2981,10 +2983,11 @@
 
 
     /** TreeIncrementAction is used to handle up/down actions.  Selection
       * is moved up or down based on direction.
       */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreeIncrementAction extends AbstractAction  {
         /** Specifies the direction to adjust the selection by. */
         protected int         direction;
         /** If true the new item is added to the selection, if false the
          * selection is reset. */

@@ -3018,10 +3021,11 @@
     /**
       * TreeHomeAction is used to handle end/home actions.
       * Scrolls either the first or last cell to be visible based on
       * direction.
       */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreeHomeAction extends AbstractAction {
         protected int            direction;
         /** Set to true if append to selection. */
         private boolean          addToSelection;
         private boolean          changeSelection;

@@ -3052,10 +3056,11 @@
 
 
     /**
       * For the first selected row expandedness will be toggled.
       */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreeToggleAction extends AbstractAction {
         public TreeToggleAction(String name) {
         }
 
         public void actionPerformed(ActionEvent e) {

@@ -3071,10 +3076,11 @@
 
 
     /**
      * ActionListener that invokes cancelEditing when action performed.
      */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     public class TreeCancelEditingAction extends AbstractAction {
         public TreeCancelEditingAction(String name) {
         }
 
         public void actionPerformed(ActionEvent e) {

@@ -3183,10 +3189,11 @@
 
     } // End of class BasicTreeUI.MouseInputHandler
 
     private static final TransferHandler defaultTransferHandler = new TreeTransferHandler();
 
+    @SuppressWarnings("serial") // JDK-implementation class
     static class TreeTransferHandler extends TransferHandler implements UIResource, Comparator<TreePath> {
 
         private JTree tree;
 
         /**