All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.TypedFile
java.lang.Object
|
+----java.io.File
|
+----com.sun.java.swing.TypedFile
- public class TypedFile
- extends File
Typed File Objects, returned by FileChooserModel
-
TypedFile(String, FileType)
- Return a TypedFile of
type
for
path
.
-
TypedFile(String, String, FileType)
- Return a TypedFile of
type
for
path
and name
.
-
getIcon()
- May return null, in which case UI must provide a default icon
-
getType()
- Guaranteed not to return null.
-
setType(FileType)
- Must be called once (and only once) before getType is called.
-
toString()
-
TypedFile
public TypedFile(String path,
FileType type)
- Return a TypedFile of
type
for
path
. If you need a TypedFile and you don't know
the type, use FileChooserModel.getType
.
TypedFile
public TypedFile(String path,
String name,
FileType type)
- Return a TypedFile of
type
for
path
and name
. If you need a
TypedFile and you don't know the type, use
FileChooserModel.getType
.
getType
public FileType getType()
- Guaranteed not to return null. RuntimeException thrown if this
is called before a type has been set.
setType
public void setType(FileType type)
- Must be called once (and only once) before getType is called.
RuntimeException thrown if this is violated.
getIcon
public Icon getIcon()
- May return null, in which case UI must provide a default icon
toString
public String toString()
- Overrides:
- toString in class File
All Packages Class Hierarchy This Package Previous Next Index