Generated by
JDiff

javax.swing.tree Documentation Differences

This file contains all the changes in documentation in the package javax.swing.tree as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class DefaultTreeCellEditor

A TreeCellEditor. You need to supply an instance of DefaultTreeCellRenderer so that the icons can be obtained. You can optionally supply a TreeCellEditor that will be layed out according to the icon in the DefaultTreeCellRenderer. If you do not supply a TreeCellEditor a TextField will be used. Editing is started on a triple mouse click or after a click pause click and a delay of 1200 miliseconds.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4 support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see javax.swing.JTree @version 1.25 1226 04/0309/0102 @author Scott Violet


Class DefaultTreeSelectionModel

Default implementation of TreeSelectionModel. Listeners are notified whenever the paths in the selection change not the rows. In order to be able to track row changes you may wish to become a listener for expansion events on the tree and test for changes from there.

resetRowSelection is called from any of the methods that update the selected paths. If you subclass any of these methods to filter what is allowed to be selected be sure and message resetRowSelection if you do not message super.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4 support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see javax.swing.JTree @version 1.4345 12/03/0120/02 @author Scott Violet

Class DefaultTreeSelectionModel, void fireValueChanged(TreeSelectionEvent)

Notifies all listeners that are registered for tree selection events on this object. @see #addTreeSelectionListener @see EventListenerList

Class TreeModel

The interface that defines a suitable data model for a JTree. For further information on tree models including an example of a custom implementation see How to Use Trees in The Java Tutorial.

JTree and its related classes make extensive use of TreePaths for indentifying nodes in the TreeModel. If a TreeModel returns the same object as compared by equals at two different indices under the same parent than the resulting TreePath objects will be considered equal as well. Some implementations may assume that if two TreePaths are equal they identify the same node. If this condition is not met painting problems and other oddities may result. In other words if getChild for a given parent returns the same Object (as determined by equals) problems may result and it is recommended you avoid doing this. @see TreePath @version 1.19 1220 02/0315/0102 @author Rob Davis @author Ray Ryan