2362N/A * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An event that characterizes a change in the current 0N/A * selection. The change is based on any number of paths. 0N/A * TreeSelectionListeners will generally query the source of 0N/A * the event for the new selected status of each potentially 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is 0N/A * appropriate for short term storage or RMI between applications running 0N/A * the same version of Swing. As of 1.4, support for long term storage 0N/A * of all JavaBeans<sup><font size="-2">TM</font></sup> 0N/A * has been added to the <code>java.beans</code> package. 0N/A * @see TreeSelectionListener 0N/A * @see javax.swing.tree.TreeSelectionModel 0N/A * @author Scott Violet 0N/A /** Paths this event represents. */ 0N/A /** For each path identifies if that path is in fact new. */ 0N/A /** leadSelectionPath before the paths changed, may be null. */ 0N/A /** leadSelectionPath after the paths changed, may be null. */ 0N/A * Represents a change in the selection of a TreeSelectionModel. 0N/A * paths identifies the paths that have been either added or 0N/A * removed from the selection. 0N/A * @param source source of event 0N/A * @param paths the paths that have changed in the selection 0N/A * Represents a change in the selection of a TreeSelectionModel. 0N/A * path identifies the path that have been either added or 0N/A * removed from the selection. 0N/A * @param source source of event 0N/A * @param path the path that has changed in the selection 0N/A * @param isNew whether or not the path is new to the selection, false 0N/A * means path was removed from the selection. 0N/A * Returns the paths that have been added or removed from the 0N/A * Returns the first path element. 0N/A * Returns whether the path identified by {@code getPath} was 0N/A * added to the selection. A return value of {@code true} 0N/A * indicates the path identified by {@code getPath} was added to 0N/A * the selection. A return value of {@code false} indicates {@code 0N/A * getPath} was selected, but is no longer selected. 0N/A * @return {@code true} if {@code getPath} was added to the selection, 0N/A * {@code false} otherwise 0N/A * Returns whether the specified path was added to the selection. 0N/A * A return value of {@code true} indicates the path identified by 0N/A * {@code path} was added to the selection. A return value of 0N/A * {@code false} indicates {@code path} is no longer selected. This method 0N/A * is only valid for the paths returned from {@code getPaths()}; invoking 0N/A * with a path not included in {@code getPaths()} throws an 0N/A * {@code IllegalArgumentException}. 0N/A * @param path the path to test 0N/A * @return {@code true} if {@code path} was added to the selection, 0N/A * {@code false} otherwise 0N/A * @throws IllegalArgumentException if {@code path} is not contained 0N/A * in {@code getPaths} 0N/A * Returns whether the path at {@code getPaths()[index]} was added 0N/A * to the selection. A return value of {@code true} indicates the 0N/A * path was added to the selection. A return value of {@code false} 0N/A * indicates the path is no longer selected. 0N/A * @param index the index of the path to test 0N/A * @return {@code true} if the path was added to the selection, 0N/A * {@code false} otherwise 0N/A * @throws IllegalArgumentException if index is outside the range of 0N/A * Returns the path that was previously the lead path. 0N/A * Returns the current lead path. 0N/A * Returns a copy of the receiver, but with the source being newSource. 0N/A // Fix for IE bug - crashing