All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.FileType
- public interface FileType
-
SharedComputer
-
-
SharedFloppyDrive
-
-
SharedFolder
-
-
SharedGenericFile
-
-
SharedHardDrive
-
-
SharedHidden
- Used more as a rule than as a file type.
-
getIcon()
- May return null.
-
getPresentationName()
-
-
isContainer()
-
-
testFile(File)
- Return true if it would be appropriate to set this as the
type of the given file.
SharedGenericFile
public static final FileType. GenericFile SharedGenericFile
SharedFolder
public static final FileType. Folder SharedFolder
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
.
SharedComputer
public static final FileType. Computer SharedComputer
SharedFloppyDrive
public static final FileType. FloppyDrive SharedFloppyDrive
SharedHardDrive
public static final FileType. HardDrive SharedHardDrive
getPresentationName
public abstract String getPresentationName()
- Returns:
- a human readable name for this type, e.g. "HyperText Markup Language Document (HTML)"
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.
getIcon
public abstract Icon getIcon()
- May return null. In this case the UI must provide an icon
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