java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | javax.swing.event.TreeSelectionEvent |
An event that characterizes a change in the current selection. The change is based on any number of paths. TreeSelectionListeners will generally query the source of the event for the new selected status of each potentially changed row.
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 XMLEncoder
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
areNew | For each path identifies if that path is in fact new. | ||||||||||
newLeadSelectionPath | leadSelectionPath after the paths changed, may be null. | ||||||||||
oldLeadSelectionPath | leadSelectionPath before the paths changed, may be null. | ||||||||||
paths | Paths this event represents. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Represents a change in the selection of a TreeSelectionModel.
| |||||||||||
Represents a change in the selection of a TreeSelectionModel.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a copy of the receiver, but with the source being newSource.
| |||||||||||
Returns the current lead path.
| |||||||||||
Returns the path that was previously the lead path.
| |||||||||||
Returns the first path element.
| |||||||||||
Returns the paths that have been added or removed from the
selection.
| |||||||||||
Returns true if the path identified by
index was added to
the selection. | |||||||||||
Returns true if the path identified by path was added to the
selection.
| |||||||||||
Returns true if the first path element has been added to the
selection, a return value of false means the first path has been
removed from the selection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
For each path identifies if that path is in fact new.
Represents a change in the selection of a TreeSelectionModel. paths identifies the paths that have been either added or removed from the selection.
source | source of event |
---|---|
paths | the paths that have changed in the selection |
Represents a change in the selection of a TreeSelectionModel. path identifies the path that have been either added or removed from the selection.
source | source of event |
---|---|
path | the path that has changed in the selection |
isNew | whether or not the path is new to the selection, false means path was removed from the selection. |
Returns a copy of the receiver, but with the source being newSource.
Returns true if the path identified by index
was added to
the selection. A return value of false means the path was in the
selection but is no longer in the selection. This will raise if
index < 0 || >= getPaths
.length.
Returns true if the path identified by path was added to the selection. A return value of false means the path was in the selection but is no longer in the selection. This will raise if path is not one of the paths identified by this event.
Returns true if the first path element has been added to the selection, a return value of false means the first path has been removed from the selection.