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

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  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="http://java.sun.com/docs/books/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<sup><font size="-2">TM</font></sup>
  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 public class TreeModelEvent extends EventObject {
  54     /** Path to the parent of the nodes that have changed. */
  55     protected TreePath  path;
  56     /** Indices identifying the position of where the children were. */
  57     protected int[]     childIndices;




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  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="http://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<sup><font size="-2">TM</font></sup>
  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 public class TreeModelEvent extends EventObject {
  54     /** Path to the parent of the nodes that have changed. */
  55     protected TreePath  path;
  56     /** Indices identifying the position of where the children were. */
  57     protected int[]     childIndices;