/[classpath]/classpath/javax/swing/JFileChooser.java
ViewVC logotype

Diff of /classpath/javax/swing/JFileChooser.java

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

revision 1.19 by trebligd, Tue Oct 11 14:03:15 2005 UTC revision 1.20 by rabbit78, Wed Oct 12 12:46:07 2005 UTC
# Line 828  public class JFileChooser extends JCompo Line 828  public class JFileChooser extends JCompo
828     */     */
829    public String getDialogTitle()    public String getDialogTitle()
830    {    {
831      return dialogTitle;      if (dialogTitle == null)
832          return getUI().getDialogTitle(this);
833        else
834          return dialogTitle;
835    }    }
836    
837    /**    /**
# Line 939  public class JFileChooser extends JCompo Line 942  public class JFileChooser extends JCompo
942     */     */
943    public String getApproveButtonText()    public String getApproveButtonText()
944    {    {
945      return approveButtonText;      if (approveButtonText == null)
946          return getUI().getApproveButtonText(this);
947        else
948          return approveButtonText;
949    }    }
950    
951    /**    /**
# Line 1258  public class JFileChooser extends JCompo Line 1264  public class JFileChooser extends JCompo
1264     */     */
1265    public FileView getFileView()    public FileView getFileView()
1266    {    {
     return fv;  
   }  
   
   /**  
    * Returns the current file view or, if it is <code>null</code>, a default  
    * file view provided by the UI delegate.  
    *  
    * @return A file view.  
    */  
   private FileView getInternalFileView()  
   {  
1267      if (fv == null)      if (fv == null)
1268        return getUI().getFileView(this);        return getUI().getFileView(this);
1269      return fv;      else
1270          return fv;
1271    }    }
1272    
1273    /**    /**
# Line 1284  public class JFileChooser extends JCompo Line 1280  public class JFileChooser extends JCompo
1280     */     */
1281    public String getName(File f)    public String getName(File f)
1282    {    {
1283      return getInternalFileView().getName(f);      return getFileView().getName(f);
1284    }    }
1285    
1286    /**    /**
# Line 1297  public class JFileChooser extends JCompo Line 1293  public class JFileChooser extends JCompo
1293     */     */
1294    public String getDescription(File f)    public String getDescription(File f)
1295    {    {
1296      return getInternalFileView().getDescription(f);      return getFileView().getDescription(f);
1297    }    }
1298    
1299    /**    /**
# Line 1310  public class JFileChooser extends JCompo Line 1306  public class JFileChooser extends JCompo
1306     */     */
1307    public String getTypeDescription(File f)    public String getTypeDescription(File f)
1308    {    {
1309      return getInternalFileView().getTypeDescription(f);      return getFileView().getTypeDescription(f);
1310    }    }
1311    
1312    /**    /**
# Line 1322  public class JFileChooser extends JCompo Line 1318  public class JFileChooser extends JCompo
1318     */     */
1319    public Icon getIcon(File f)    public Icon getIcon(File f)
1320    {    {
1321      return getInternalFileView().getIcon(f);      return getFileView().getIcon(f);
1322    }    }
1323    
1324    /**    /**

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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