View Javadoc

1   package hoplugins.conv;
2   
3   import java.io.File;
4   
5   import javax.swing.Icon;
6   import javax.swing.filechooser.FileView;
7   
8   final class CFileView extends FileView {
9   
10      public String getName(File f) {
11      	String tmp = f.getName();
12      	int index = tmp.indexOf(".");
13      	if(RSC.isHTForverFile(f)){
14      	    return tmp.substring(0,11);
15      	}
16      	if(RSC.isHTCoachFile(f)){
17      	    return tmp.substring(tmp.indexOf("_")+1,index);
18      	}
19      	
20      	if(index > 0)
21      		return tmp.substring(0,index); 
22     		return null;
23      }
24  
25      public String getDescription(File f) {
26          return null; 
27      }
28  
29      public Boolean isTraversable(File f) {
30          return null; 
31      }
32  
33      public String getTypeDescription(File f) {
34      	return null;
35      }
36  
37      public Icon getIcon(File f) {
38          return null;
39      }
40  }