< prev index next >

src/java.desktop/share/classes/javax/swing/event/TreeModelEvent.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  25 
  26 package javax.swing.event;
  27 
  28 import java.util.EventObject;
  29 import javax.swing.tree.TreePath;
  30 
  31 
  32 /**
  33  * Encapsulates information describing changes to a tree model, and
  34  * used to notify tree model listeners of the change.
  35  * For more information and examples see
  36  * <a
  37  href="https://docs.oracle.com/javase/tutorial/uiswing/events/treemodellistener.html">How to Write a Tree Model Listener</a>,
  38  * a section in <em>The Java Tutorial.</em>
  39  * <p>
  40  * <strong>Warning:</strong>
  41  * Serialized objects of this class will not be compatible with
  42  * future Swing releases. The current serialization support is
  43  * appropriate for short term storage or RMI between applications running
  44  * the same version of Swing.  As of 1.4, support for long term storage
  45  * of all JavaBeans&trade;
  46  * has been added to the <code>java.beans</code> package.
  47  * Please see {@link java.beans.XMLEncoder}.
  48  *
  49  * @author Rob Davis
  50  * @author Ray Ryan
  51  * @author Scott Violet
  52  */
  53 @SuppressWarnings("serial") // Same-version serialization only
  54 public class TreeModelEvent extends EventObject {
  55     /** Path to the parent of the nodes that have changed. */
  56     protected TreePath  path;
  57     /** Indices identifying the position of where the children were. */
  58     protected int[]     childIndices;
  59     /** Children that have been removed. */
  60     protected Object[]  children;
  61 
  62     /**
  63      * Used to create an event when nodes have been changed, inserted, or
  64      * removed, identifying the path to the parent of the modified items as
  65      * an array of Objects. All of the modified objects are siblings which are




  25 
  26 package javax.swing.event;
  27 
  28 import java.util.EventObject;
  29 import javax.swing.tree.TreePath;
  30 
  31 
  32 /**
  33  * Encapsulates information describing changes to a tree model, and
  34  * used to notify tree model listeners of the change.
  35  * For more information and examples see
  36  * <a
  37  href="https://docs.oracle.com/javase/tutorial/uiswing/events/treemodellistener.html">How to Write a Tree Model Listener</a>,
  38  * a section in <em>The Java Tutorial.</em>
  39  * <p>
  40  * <strong>Warning:</strong>
  41  * Serialized objects of this class will not be compatible with
  42  * future Swing releases. The current serialization support is
  43  * appropriate for short term storage or RMI between applications running
  44  * the same version of Swing.  As of 1.4, support for long term storage
  45  * of all JavaBeans
  46  * has been added to the <code>java.beans</code> package.
  47  * Please see {@link java.beans.XMLEncoder}.
  48  *
  49  * @author Rob Davis
  50  * @author Ray Ryan
  51  * @author Scott Violet
  52  */
  53 @SuppressWarnings("serial") // Same-version serialization only
  54 public class TreeModelEvent extends EventObject {
  55     /** Path to the parent of the nodes that have changed. */
  56     protected TreePath  path;
  57     /** Indices identifying the position of where the children were. */
  58     protected int[]     childIndices;
  59     /** Children that have been removed. */
  60     protected Object[]  children;
  61 
  62     /**
  63      * Used to create an event when nodes have been changed, inserted, or
  64      * removed, identifying the path to the parent of the modified items as
  65      * an array of Objects. All of the modified objects are siblings which are


< prev index next >