< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java

Print this page

        

*** 164,179 **** } /** * Renames a file in the underlying file system. * ! * @param oldFile a <code>File</code> object representing * the existing file ! * @param newFile a <code>File</code> object representing * the desired new file name ! * @return <code>true</code> if rename succeeded, ! * otherwise <code>false</code> * @since 1.4 */ public boolean renameFile(File oldFile, File newFile) { synchronized(fileCache) { if (oldFile.renameTo(newFile)) { --- 164,179 ---- } /** * Renames a file in the underlying file system. * ! * @param oldFile a {@code File} object representing * the existing file ! * @param newFile a {@code File} object representing * the desired new file name ! * @return {@code true} if rename succeeded, ! * otherwise {@code false} * @since 1.4 */ public boolean renameFile(File oldFile, File newFile) { synchronized(fileCache) { if (oldFile.renameTo(newFile)) {
*** 402,412 **** /** * Adds a PropertyChangeListener to the listener list. The listener is * registered for all bound properties of this class. * <p> ! * If <code>listener</code> is <code>null</code>, * no exception is thrown and no action is performed. * * @param listener the property change listener to be added * * @see #removePropertyChangeListener --- 402,412 ---- /** * Adds a PropertyChangeListener to the listener list. The listener is * registered for all bound properties of this class. * <p> ! * If {@code listener} is {@code null}, * no exception is thrown and no action is performed. * * @param listener the property change listener to be added * * @see #removePropertyChangeListener
*** 441,451 **** /** * Returns an array of all the property change listeners * registered on this component. * ! * @return all of this component's <code>PropertyChangeListener</code>s * or an empty array if no property change * listeners are currently registered * * @see #addPropertyChangeListener * @see #removePropertyChangeListener --- 441,451 ---- /** * Returns an array of all the property change listeners * registered on this component. * ! * @return all of this component's {@code PropertyChangeListener}s * or an empty array if no property change * listeners are currently registered * * @see #addPropertyChangeListener * @see #removePropertyChangeListener
< prev index next >