< prev index next >

src/java.desktop/share/classes/javax/swing/tree/DefaultMutableTreeNode.java

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


  60  * <b>This is not a thread safe class.</b>If you intend to use
  61  * a DefaultMutableTreeNode (or a tree of TreeNodes) in more than one thread, you
  62  * need to do your own synchronizing. A good convention to adopt is
  63  * synchronizing on the root node of a tree.
  64  * <p>
  65  * While DefaultMutableTreeNode implements the MutableTreeNode interface and
  66  * will allow you to add in any implementation of MutableTreeNode not all
  67  * of the methods in DefaultMutableTreeNode will be applicable to all
  68  * MutableTreeNodes implementations. Especially with some of the enumerations
  69  * that are provided, using some of these methods assumes the
  70  * DefaultMutableTreeNode contains only DefaultMutableNode instances. All
  71  * of the TreeNode/MutableTreeNode methods will behave as defined no
  72  * matter what implementations are added.
  73  *
  74  * <p>
  75  * <strong>Warning:</strong>
  76  * Serialized objects of this class will not be compatible with
  77  * future Swing releases. The current serialization support is
  78  * appropriate for short term storage or RMI between applications running
  79  * the same version of Swing.  As of 1.4, support for long term storage
  80  * of all JavaBeans&trade;
  81  * has been added to the <code>java.beans</code> package.
  82  * Please see {@link java.beans.XMLEncoder}.
  83  *
  84  * @see MutableTreeNode
  85  *
  86  * @author Rob Davis
  87  */
  88 @SuppressWarnings("serial") // Same-version serialization only
  89 public class DefaultMutableTreeNode implements Cloneable,
  90        MutableTreeNode, Serializable
  91 {
  92     private static final long serialVersionUID = -4298474751201349152L;
  93 
  94     /**
  95      * An enumeration that is always empty. This is used when an enumeration
  96      * of a leaf node's children is requested.
  97      */
  98     public static final Enumeration<TreeNode> EMPTY_ENUMERATION
  99         = Collections.emptyEnumeration();
 100 




  60  * <b>This is not a thread safe class.</b>If you intend to use
  61  * a DefaultMutableTreeNode (or a tree of TreeNodes) in more than one thread, you
  62  * need to do your own synchronizing. A good convention to adopt is
  63  * synchronizing on the root node of a tree.
  64  * <p>
  65  * While DefaultMutableTreeNode implements the MutableTreeNode interface and
  66  * will allow you to add in any implementation of MutableTreeNode not all
  67  * of the methods in DefaultMutableTreeNode will be applicable to all
  68  * MutableTreeNodes implementations. Especially with some of the enumerations
  69  * that are provided, using some of these methods assumes the
  70  * DefaultMutableTreeNode contains only DefaultMutableNode instances. All
  71  * of the TreeNode/MutableTreeNode methods will behave as defined no
  72  * matter what implementations are added.
  73  *
  74  * <p>
  75  * <strong>Warning:</strong>
  76  * Serialized objects of this class will not be compatible with
  77  * future Swing releases. The current serialization support is
  78  * appropriate for short term storage or RMI between applications running
  79  * the same version of Swing.  As of 1.4, support for long term storage
  80  * of all JavaBeans
  81  * has been added to the <code>java.beans</code> package.
  82  * Please see {@link java.beans.XMLEncoder}.
  83  *
  84  * @see MutableTreeNode
  85  *
  86  * @author Rob Davis
  87  */
  88 @SuppressWarnings("serial") // Same-version serialization only
  89 public class DefaultMutableTreeNode implements Cloneable,
  90        MutableTreeNode, Serializable
  91 {
  92     private static final long serialVersionUID = -4298474751201349152L;
  93 
  94     /**
  95      * An enumeration that is always empty. This is used when an enumeration
  96      * of a leaf node's children is requested.
  97      */
  98     public static final Enumeration<TreeNode> EMPTY_ENUMERATION
  99         = Collections.emptyEnumeration();
 100 


< prev index next >