Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.sun.java.swing.event.TreeSelectionEvent
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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
boolean[] | areNew
For each path identifies if that is path is in fact new. |
TreePath | newLeadSelectionPath
leadSelectionPath after the paths changed, may be null. |
TreePath | oldLeadSelectionPath
leadSelectionPath before the paths changed, may be null. |
TreePath[] | paths
Paths this event represents. |
Fields inherited from class java.util.EventObject | |
source |
Constructor Summary | |
TreeSelectionEvent(java.lang.Object source,
TreePath[] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. paths identifies the paths that have been either added or removed from the selection. |
|
TreeSelectionEvent(java.lang.Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. path identifies the path that have been either added or removed from the selection. |
Method Summary | |
java.lang.Object | cloneWithSource(java.lang.Object newSource)
Returns a copy of the receiver, but with the source being newSource. |
TreePath | getNewLeadSelectionPath()
Returns the current lead path. |
TreePath | getOldLeadSelectionPath()
Returns the path that was previously the lead path. |
TreePath[] | getPaths()
Returns the paths that have been added or removed from the selection. |
TreePath | getPath()
Returns the first path element. |
boolean | isAddedPath()
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. |
boolean | isAddedPath(TreePath path)
Returns true if the path identified by path was added to the selection. |
Methods inherited from class java.util.EventObject | |
getSource, toString |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected TreePath[] paths
protected boolean[] areNew
protected TreePath oldLeadSelectionPath
protected TreePath newLeadSelectionPath
Constructor Detail |
public TreeSelectionEvent(java.lang.Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
source
- source of event
paths
- the paths that have changed in the selectionpublic TreeSelectionEvent(java.lang.Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
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.Method Detail |
public TreePath[] getPaths()
public TreePath getPath()
public boolean isAddedPath()
public boolean isAddedPath(TreePath path)
public TreePath getOldLeadSelectionPath()
public TreePath getNewLeadSelectionPath()
public java.lang.Object cloneWithSource(java.lang.Object newSource)
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |