classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: javax.swing.filechooser.FileView


From: David Gilbert
Subject: [cp-patches] FYI: javax.swing.filechooser.FileView
Date: Mon, 19 Sep 2005 21:14:05 +0000
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050728)

I committed this patch (reformatting and API docs):

2005-09-19  David Gilbert  <address@hidden>

        * javax/swing/filechooser/FileView.java:
        Reformatted and added API doc comments.

Regards,

Dave
Index: javax/swing/filechooser/FileView.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/filechooser/FileView.java,v
retrieving revision 1.4
diff -u -r1.4 FileView.java
--- javax/swing/filechooser/FileView.java       2 Jul 2005 20:32:50 -0000       
1.4
+++ javax/swing/filechooser/FileView.java       19 Sep 2005 20:07:34 -0000
@@ -1,5 +1,5 @@
 /* FileView.java --
-   Copyright (C) 2002, 2004  Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -43,72 +43,85 @@
 import javax.swing.Icon;
 
 /**
- * FileView
- * @author     Andrew Selkirk
- * @version    1.0
+ * An abstract class that provides presentation information about files and 
+ * directories.  .
+ * 
+ * @author  Andrew Selkirk
  */
-public abstract class FileView {
+public abstract class FileView 
+{
 
-       //-------------------------------------------------------------
-       // Initialization ---------------------------------------------
-       //-------------------------------------------------------------
-
-       /**
-        * Constructor FileView
-        */
-       public FileView() {
-               // TODO
-       } // FileView()
-
-
-       //-------------------------------------------------------------
-       // Methods ----------------------------------------------------
-       //-------------------------------------------------------------
-
-       /**
-        * getName
-        * @param file TODO
-        * @returns String
-        */
-       public String getName(File file) {
-               return null; // TODO
-       } // getName()
-
-       /**
-        * getDescription
-        * @param value0 TODO
-        * @returns String
-        */
-       public String getDescription(File value0) {
-               return null; // TODO
-       } // getDescription()
-
-       /**
-        * getTypeDescription
-        * @param value0 TODO
-        * @returns String
-        */
-       public String getTypeDescription(File value0) {
-               return null; // TODO
-       } // getTypeDescription()
-
-       /**
-        * getIcon
-        * @param value0 TODO
-        * @returns Icon
-        */
-       public Icon getIcon(File value0) {
-               return null; // TODO
-       } // getIcon()
-
-       /**
-        * isTraversable
-        * @param value0 TODO
-        * @returns Boolean
-        */
-       public Boolean isTraversable(File value0) {
-               return null; // TODO
-       } // isTraversable()
+  /**
+   * Creates a new <code>FileView</code> instance.
+   */
+  public FileView() 
+  {
+  } 
+
+  /**
+   * 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) 
+  {
+    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) 
+  {
+    return null;
+  } 
+
+  /**
+   * 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) 
+  {
+    return null;
+  } 
+
+  /**
+   * Returns an address@hidden 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) 
+  {
+    return null;
+  } 
+
+  /**
+   * Returns address@hidden Boolean#TRUE} if the given directory is 
traversable, and
+   * address@hidden Boolean#FALSE} if it is not.  This method always returns 
+   * <code>null</code> and should be overridden by subclasses.
+   * 
+   * @param directory  the directory.
+   * 
+   * @returns Always <code>null</code>.
+   */
+  public Boolean isTraversable(File directory) 
+  {
+    return null;
+  } 
 
-
-} // FileView
+}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]