diff options
Diffstat (limited to 'libjava/classpath/javax/swing/filechooser')
4 files changed, 81 insertions, 81 deletions
diff --git a/libjava/classpath/javax/swing/filechooser/FileFilter.java b/libjava/classpath/javax/swing/filechooser/FileFilter.java index de11525..68bcb65 100644 --- a/libjava/classpath/javax/swing/filechooser/FileFilter.java +++ b/libjava/classpath/javax/swing/filechooser/FileFilter.java @@ -45,12 +45,12 @@ import javax.swing.JFileChooser; /** * The base class for filters that control the visibility of files in the * {@link JFileChooser} component. - * + * * @see JFileChooser#addChoosableFileFilter(FileFilter) - * - * @author Andrew Selkirk + * + * @author Andrew Selkirk */ -public abstract class FileFilter +public abstract class FileFilter { /** @@ -64,20 +64,20 @@ public abstract class FileFilter /** * Returns <code>true</code> if the specified file matches the filter, and * <code>false</code> otherwise. - * + * * @param file the file. - * + * * @return A boolean. */ public abstract boolean accept(File file); /** - * Returns a description of the files that will be selected by the filter - * (for example, "Java source files"). This description will usually be + * Returns a description of the files that will be selected by the filter + * (for example, "Java source files"). This description will usually be * displayed on the {@link JFileChooser} component, often in a combo box that * is used to select the appropriate filter (in cases where more than one * filter is available). - * + * * @return A description of the filter. */ public abstract String getDescription(); diff --git a/libjava/classpath/javax/swing/filechooser/FileSystemView.java b/libjava/classpath/javax/swing/filechooser/FileSystemView.java index 41d865a..5c3c0b8 100644 --- a/libjava/classpath/javax/swing/filechooser/FileSystemView.java +++ b/libjava/classpath/javax/swing/filechooser/FileSystemView.java @@ -46,14 +46,14 @@ import javax.swing.JFileChooser; /** - * The base class providing a view of the file system for use by the + * The base class providing a view of the file system for use by the * {@link JFileChooser} component. */ public abstract class FileSystemView { /** The instance returned by {@link #getFileSystemView()}. */ private static FileSystemView defaultFileSystemView; - + /** * Creates a new file object with the given name in the specified directory. * @@ -101,12 +101,12 @@ public abstract class FileSystemView * Creates a new folder with a unique name in the specified directory and * returns a {@link File} object representing the new directory. * - * @param containingDir the directory to contain the new folder + * @param containingDir the directory to contain the new folder * (<code>null</code> not permitted). * * @return A {@link File} object representing the new directory. * - * @throws IOException if an exception occurs while creating the new + * @throws IOException if an exception occurs while creating the new * directory. */ public abstract File createNewFolder(File containingDir) @@ -137,8 +137,8 @@ public abstract class FileSystemView } /** - * Returns an array containing the files in the given directory. The - * <code>useFileHiding</code> controls whether or not hidden files are + * Returns an array containing the files in the given directory. The + * <code>useFileHiding</code> controls whether or not hidden files are * included in the result. * * @param dir the directory (if <code>null</code> @@ -158,7 +158,7 @@ public abstract class FileSystemView ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) - trim.add(files[i]); + trim.add(files[i]); File[] value = (File[]) trim.toArray(new File[trim.size()]); return value; } @@ -220,12 +220,12 @@ public abstract class FileSystemView } /** - * Returns the name of a file as it would be displayed by the underlying + * Returns the name of a file as it would be displayed by the underlying * system. * * @param f the file. * - * @return the name of a file as it would be displayed by the underlying + * @return the name of a file as it would be displayed by the underlying * system * * @specnote The specification suggests that the information here is @@ -242,8 +242,8 @@ public abstract class FileSystemView } /** - * Returns the icon that would be displayed for the given file by the - * underlying system. This implementation returns <code>null</code>, + * Returns the icon that would be displayed for the given file by the + * underlying system. This implementation returns <code>null</code>, * subclasses must override. * * @param f the file. @@ -256,8 +256,8 @@ public abstract class FileSystemView } /** - * Returns the type description of a file that would be displayed by the - * underlying system. This implementation returns <code>null</code>, + * Returns the type description of a file that would be displayed by the + * underlying system. This implementation returns <code>null</code>, * subclasses must override. * * @param f the file. @@ -282,7 +282,7 @@ public abstract class FileSystemView } /** - * Returns <code>true</code> if the given directory represents a disk + * Returns <code>true</code> if the given directory represents a disk * drive, and <code>false</code> otherwise. This default implementation * always returns <code>false</code>. * @@ -326,12 +326,12 @@ public abstract class FileSystemView String filename = dir.getAbsolutePath(); for (int i = 0; i < roots.length; i++) if (roots[i].getAbsolutePath().equals(filename)) - return true; + return true; return false; } /** - * Returns <code>true</code> if the given directory represents a floppy + * Returns <code>true</code> if the given directory represents a floppy * drive, and <code>false</code> otherwise. This default implementation * always returns <code>false</code>. * @@ -345,12 +345,12 @@ public abstract class FileSystemView } /** - * Returns <code>true</code> if the given file is hidden, and + * Returns <code>true</code> if the given file is hidden, and * <code>false</code> otherwise. * * @param f the file. * - * @return <code>true</code> if the given file is hidden, and + * @return <code>true</code> if the given file is hidden, and * <code>false</code> otherwise. */ public boolean isHiddenFile(File f) @@ -359,13 +359,13 @@ public abstract class FileSystemView } /** - * Returns <code>true</code> if <code>folder</code> is the parent of + * Returns <code>true</code> if <code>folder</code> is the parent of * <code>file</code>, and <code>false</code> otherwise. * * @param folder the folder (<code>null</code> not permitted). * @param file the file (<code>null</code> not permitted). * - * @return <code>true</code> if <code>folder</code> is the parent of + * @return <code>true</code> if <code>folder</code> is the parent of * <code>file</code>, and <code>false</code> otherwise. */ public boolean isParent(File folder, File file) @@ -390,13 +390,13 @@ public abstract class FileSystemView } /** - * Returns <code>true</code> if the file is traversable, and + * Returns <code>true</code> if the file is traversable, and * <code>false</code> otherwise. Here, all directories are considered - * traversable, and files are considered non-traversable. + * traversable, and files are considered non-traversable. * * @param f the file or directory (<code>null</code> not permitted). * - * @return <code>true</code> if the file is traversable, and + * @return <code>true</code> if the file is traversable, and * <code>false</code> otherwise. */ public Boolean isTraversable(File f) diff --git a/libjava/classpath/javax/swing/filechooser/FileView.java b/libjava/classpath/javax/swing/filechooser/FileView.java index 8c2be32..cfa39996 100644 --- a/libjava/classpath/javax/swing/filechooser/FileView.java +++ b/libjava/classpath/javax/swing/filechooser/FileView.java @@ -43,86 +43,86 @@ import java.io.File; import javax.swing.Icon; /** - * An abstract class that provides presentation information about files and + * An abstract class that provides presentation information about files and * directories. . - * + * * @author Andrew Selkirk */ -public abstract class FileView +public abstract class FileView { /** * Creates a new <code>FileView</code> instance. */ - public FileView() + public FileView() { // Nothing to do here. - } + } /** * Returns the name for the specified file. This method always returns * <code>null</code> and should be overridden by subclasses. - * + * * @param file the file. - * + * * @return Always <code>null</code>. */ - public String getName(File file) + public String getName(File file) { return null; - } + } /** * Returns a description for the specified file. This method always returns * <code>null</code> and should be overridden by subclasses. - * + * * @param file the file. - * + * * @return Always <code>null</code>. */ - public String getDescription(File file) + public String getDescription(File file) { return null; - } + } /** - * Returns a description for the type of the specified file. This method + * Returns a description for the type of the specified file. This method * always returns <code>null</code> and should be overridden by subclasses. - * + * * @param file the file. - * + * * @return Always <code>null</code>. */ - public String getTypeDescription(File file) + public String getTypeDescription(File file) { return null; - } + } /** - * Returns an {@link Icon} to represent the specified file. This method + * Returns an {@link Icon} to represent the specified file. This method * always returns <code>null</code> and should be overridden by subclasses. - * + * * @param file the file. - * + * * @return Always <code>null</code>. */ - public Icon getIcon(File file) + public Icon getIcon(File file) { return null; - } + } /** * Returns {@link Boolean#TRUE} if the given directory is traversable, and - * {@link Boolean#FALSE} if it is not. This method always returns + * {@link Boolean#FALSE} if it is not. This method always returns * <code>null</code> and should be overridden by subclasses. - * + * * @param directory the directory. - * + * * @return Always <code>null</code>. */ - public Boolean isTraversable(File directory) + public Boolean isTraversable(File directory) { return null; - } + } } diff --git a/libjava/classpath/javax/swing/filechooser/UnixFileSystemView.java b/libjava/classpath/javax/swing/filechooser/UnixFileSystemView.java index f8d71e1..1341768 100644 --- a/libjava/classpath/javax/swing/filechooser/UnixFileSystemView.java +++ b/libjava/classpath/javax/swing/filechooser/UnixFileSystemView.java @@ -48,7 +48,7 @@ import javax.swing.Icon; /** * A concrete implementation of {@link FileSystemView} that is appropriate for * Unix-like systems. - * + * * @see FileSystemView#getFileSystemView() */ class UnixFileSystemView extends FileSystemView @@ -58,18 +58,18 @@ class UnixFileSystemView extends FileSystemView /** * Creates a new folder with a unique name in the specified directory and - * returns a {@link File} object representing the new directory. The name - * of the new folder is <code>NewFolder</code> or, if a directory or file - * with that name already exists, <code>NewFolder.n</code> where - * <code>n</code> is the lowest integer greater than zero that results in + * returns a {@link File} object representing the new directory. The name + * of the new folder is <code>NewFolder</code> or, if a directory or file + * with that name already exists, <code>NewFolder.n</code> where + * <code>n</code> is the lowest integer greater than zero that results in * a unique directory name. * - * @param containingDir the directory to contain the new folder + * @param containingDir the directory to contain the new folder * (<code>null</code> not permitted). * * @return A {@link File} object representing the new directory. * - * @throws IOException if an exception occurs while creating the new + * @throws IOException if an exception occurs while creating the new * directory. */ public File createNewFolder(File containingDir) throws IOException @@ -80,22 +80,22 @@ class UnixFileSystemView extends FileSystemView + NEW_FOLDER_NAME; while (f == null) { - String full = filename; - if (count > 0) - full += "." + (count++); - f = new File(full); - if (f.isDirectory() || f.isFile()) - { - count++; - f = null; - } + String full = filename; + if (count > 0) + full += "." + (count++); + f = new File(full); + if (f.isDirectory() || f.isFile()) + { + count++; + f = null; + } } f.mkdir(); return f; } /** - * Returns an array containing the file system root. + * Returns an array containing the file system root. * * @return An array containing the file system root. */ @@ -105,12 +105,12 @@ class UnixFileSystemView extends FileSystemView } /** - * Returns the name of a file as it would be displayed by the underlying + * Returns the name of a file as it would be displayed by the underlying * system. * * @param f the file. * - * @return the name of a file as it would be displayed by the underlying + * @return the name of a file as it would be displayed by the underlying * system */ public String getSystemDisplayName(File f) @@ -137,7 +137,7 @@ class UnixFileSystemView extends FileSystemView } /** - * Returns the icon that would be displayed for the given file by the + * Returns the icon that would be displayed for the given file by the * underlying system. This method is NOT YET IMPLEMENTED. * * @param f the file. @@ -152,7 +152,7 @@ class UnixFileSystemView extends FileSystemView } /** - * Returns the description of a file that would be displayed by the + * Returns the description of a file that would be displayed by the * underlying system. This method is NOT YET IMPLEMENTED. * * @param f the file. |