All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.FileType

public interface FileType

Variable Index

 o SharedComputer
 o SharedFloppyDrive
 o SharedFolder
 o SharedGenericFile
 o SharedHardDrive
 o SharedHidden
Used more as a rule than as a file type.

Method Index

 o getIcon()
May return null.
 o getPresentationName()
 o isContainer()
 o testFile(File)
Return true if it would be appropriate to set this as the type of the given file.

Variables

 o SharedGenericFile
 public static final FileType. GenericFile SharedGenericFile
 o SharedFolder
 public static final FileType. Folder SharedFolder
 o SharedHidden
 public static final FileType. Hidden SharedHidden
Used more as a rule than as a file type. Its test returns true for any file whose first character is '.'. Not inteneded to be used as the type of a specific file, rather for use as the special hiddenRule of a FileChooserModel.

 o SharedComputer
 public static final FileType. Computer SharedComputer
 o SharedFloppyDrive
 public static final FileType. FloppyDrive SharedFloppyDrive
 o SharedHardDrive
 public static final FileType. HardDrive SharedHardDrive

Methods

 o getPresentationName
 public abstract String getPresentationName()
Returns:
a human readable name for this type, e.g. "HyperText Markup Language Document (HTML)"
 o testFile
 public abstract boolean testFile(File file)
Return true if it would be appropriate to set this as the type of the given file. Does not necessarily imply that the file exists.

 o getIcon
 public abstract Icon getIcon()
May return null. In this case the UI must provide an icon

 o isContainer
 public abstract boolean isContainer()
Returns:
true if file choosers should descend into this type. Note that returning false from this is a perfectly acceptable way to tell a FileChooser that a given type of directory is actually a document, and not to be descended.

All Packages  Class Hierarchy  This Package  Previous  Next  Index