/[classpath]/classpath/javax/swing/plaf/FileChooserUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/FileChooserUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by aselkirk, Tue May 28 05:18:35 2002 UTC revision 1.2 by brawer, Tue Jun 24 14:08:45 2003 UTC
# Line 1  Line 1 
1  /* FileChooserUI.java --  /* FileChooserUI.java --
2     Copyright (C) 2002 Free Software Foundation, Inc.     Copyright (C) 2003 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package javax.swing.plaf;  package javax.swing.plaf;
39    
40  // Imports  import java.io.File;
41  import java.io.*;  import javax.swing.JFileChooser;
 import javax.swing.*;  
 import javax.swing.filechooser.*;  
42  import javax.swing.filechooser.FileFilter;  import javax.swing.filechooser.FileFilter;
43    import javax.swing.filechooser.FileView;
44    
45  /**  /**
46   * FileChooserUI   * An abstract base class for delegates that implement the pluggable
47   * @author      Andrew Selkirk   * look and feel for a <code>JFileChooser</code>.
48   * @version     1.0   *
49     * @see javax.swing.JFileChooser
50     *
51     * @author Andrew Selkirk (aselkirk@sympatico.ca)
52     * @author Sascha Brawer (brawer@dandelis.ch)
53   */   */
54  public abstract class FileChooserUI extends ComponentUI {  public abstract class FileChooserUI
55      extends ComponentUI
56          //-------------------------------------------------------------  {
57          // Initialization ---------------------------------------------    /**
58          //-------------------------------------------------------------     * Constructs a new <code>FileChooserUI</code>.
59       */
60          /**    public FileChooserUI()
61           * Constructor FileChooserUI    {
62           */    }
63          public FileChooserUI() {  
64                  // TODO    
65          } // FileChooserUI()    /**
66       * Returns a <code>FileFilter</code> that accepts every file.  While
67       * the filtering itself is not specific to any look and feel, the
68          //-------------------------------------------------------------     * text returned by <code>FileFilter.getDescription()</code> need
69          // Methods ----------------------------------------------------     * not be the same across all look and feels.
70          //-------------------------------------------------------------     *
71       * @param chooser the <code>JFileChooser</code> for which
72          /**     *        a <code>FileFilter</code> is requested.
73           * getAcceptAllFileFilter     *
74           * @param chooser TODO     * @see javax.swing.JFileChooser#getAcceptAllFileFilter
75           * @returns FileFilter     * @see javax.swing.filechooser.FileFilter#getDescription
76           */     */
77          public abstract FileFilter getAcceptAllFileFilter(JFileChooser chooser);    public abstract FileFilter getAcceptAllFileFilter(JFileChooser chooser);
78    
79          /**  
80           * getFileView    /**
81           * @param chooser TODO     * Returns a view to a file, which is able to retrieve its name,
82           * @returns FileView     * icon, and other properties that are relevant for presenting
83           */     * the file to the user.
84          public abstract FileView getFileView(JFileChooser chooser);     *
85       * @param chooser the <code>JFileChooser</code> for which
86          /**     *        a <code>FileFilter</code> is requested.
87           * getApproveButtonText     */
88           * @param chooser TODO    public abstract FileView getFileView(JFileChooser chooser);
89           * @returns String  
90           */  
91          public abstract String getApproveButtonText(JFileChooser chooser);    /**
92       * Determines which text is appropriate for the approve button
93          /**     * according to the design guidelines of the implemented
94           * getDialogTitle     * look and feel.
95           * @param chooser TODO     *
96           * @returns String     * @param chooser the <code>JFileChooser</code> whose
97           */     *        button text is requested.
98          public abstract String getDialogTitle(JFileChooser chooser);     *
99       * @see javax.swing.JFileChoose#getApproveButtonText
100          /**     */
101           * rescanCurrentDirectory    public abstract String getApproveButtonText(JFileChooser chooser);
102           * @param value0 TODO  
103           */  
104          public abstract void rescanCurrentDirectory(JFileChooser chooser);    /**
105       * Determines which text is appropriate for the title bar of a
106          /**     * <code>JFileChooser</code> according to the design guidelines of
107           * ensureFileIsVisible     * the implemented look and feel.
108           * @param chooser TODO     *
109           * @param file TODO     * @param chooser the <code>JFileChooser</code> whose
110           */     *        dialog title is requested.
111          public abstract void ensureFileIsVisible(JFileChooser chooser, File file);     *
112       * @see javax.swing.JFileChoose#getDialogtitle
113       */
114  } // FileChooserUI    public abstract String getDialogTitle(JFileChooser chooser);
115    
116    
117      /**
118       * Refreshes the currently displayed directory.
119       *
120       * @param chooser the <code>JFileChooser</code> whose
121       *        dialog title needs re-scanning.
122       */
123      public abstract void rescanCurrentDirectory(JFileChooser chooser);
124    
125    
126      /**
127       * Ensures that a specified file is visible in the
128       * <code>JFileChooser</code>
129       *
130       * @param chooser the <code>JFileChooser</code> that
131       *        should display the file <code>file</code>.
132       *
133       * @param file the file that needs to be made visible.
134       */
135      public abstract void ensureFileIsVisible(JFileChooser chooser, File file);
136    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26