Example usage for Java javax.swing.event TreeSelectionEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) Represents a change in the selection of a TreeSelectionModel . | |
TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) Represents a change in the selection of a TreeSelectionModel . |
TreePath | getNewLeadSelectionPath() Returns the current lead path. |
TreePath | getOldLeadSelectionPath() Returns the path that was previously the lead path. |
TreePath | getPath() Returns the first path element. |
TreePath[] | getPaths() Returns the paths that have been added or removed from the selection. |
Object | getSource() The object on which the Event initially occurred. |
boolean | isAddedPath(TreePath path) Returns whether the specified path was added to the selection. |
boolean | isAddedPath(int index) Returns whether the path at getPaths()[index] was added to the selection. |
boolean | isAddedPath() Returns whether the path identified by getPath was added to the selection. |