APIdia Launch Partner
Top Inners Constructors Methods
sun.awt.shell

pack-priv Class ShellFolderManager

extends Object
Class Inheritance
Imports
java.io.File, .FileNotFoundException, java.util.concurrent.Callable

Author
Michael Martak
Since
1.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected ShellFolder.Invoker
public ShellFolder
createShellFolder(File file)

Create a shell folder from a file.

public Object
get(String
a String "fileChooserDefaultFolder": Returns a File - the default shellfolder for a new filechooser "roots": Returns a File[] - containing the root(s) of the displayable hierarchy "fileChooserComboBoxFolders": Returns a File[] - an array of shellfolders representing the list to show by default in the file chooser's combobox "fileChooserShortcutPanelFolders": Returns a File[] - an array of shellfolders representing well-known folders, such as Desktop, Documents, History, Network, Home, etc. This is used in the shortcut panel of the filechooser on Windows 2000 and Windows Me. "fileChooserIcon ": Returns an Image - icon can be ListView, DetailsView, UpFolder, NewFolder or ViewMenu (Windows only).
key
)

Returns: An Object matching the key string.

public boolean
isComputerNode(File dir)

Does dir represent a "computer" such as a node on the network, or "My Computer" on the desktop.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ShellFolderManagerback to summary
pack-priv ShellFolderManager()

Method Detail

createInvokerback to summary
protected ShellFolder.Invoker createInvoker()
createShellFolderback to summary
public ShellFolder createShellFolder(File file) throws FileNotFoundException

Create a shell folder from a file. Override to return machine-dependent behavior.

getback to summary
public Object get(String key)
Parameters
key:String

a String "fileChooserDefaultFolder": Returns a File - the default shellfolder for a new filechooser "roots": Returns a File[] - containing the root(s) of the displayable hierarchy "fileChooserComboBoxFolders": Returns a File[] - an array of shellfolders representing the list to show by default in the file chooser's combobox "fileChooserShortcutPanelFolders": Returns a File[] - an array of shellfolders representing well-known folders, such as Desktop, Documents, History, Network, Home, etc. This is used in the shortcut panel of the filechooser on Windows 2000 and Windows Me. "fileChooserIcon ": Returns an Image - icon can be ListView, DetailsView, UpFolder, NewFolder or ViewMenu (Windows only).

Returns:Object

An Object matching the key string.

isComputerNodeback to summary
public boolean isComputerNode(File dir)

Does dir represent a "computer" such as a node on the network, or "My Computer" on the desktop.

isFileSystemRootback to summary
public boolean isFileSystemRoot(File dir)
sun.awt.shell back to summary

private Class ShellFolderManager.DirectInvoker

extends Object
implements Invoker
Class Inheritance
All Implemented Interfaces
sun.awt.shell.ShellFolder.Invoker

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public <T> T
invoke(Callable<T> task)

Implements sun.awt.shell.ShellFolder.Invoker.invoke.

Invokes a callable task.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DirectInvokerback to summary
private DirectInvoker()

Method Detail

invokeback to summary
public <T> T invoke(Callable<T> task) throws Exception

Implements sun.awt.shell.ShellFolder.Invoker.invoke.

Doc from sun.awt.shell.ShellFolder.Invoker.invoke.

Invokes a callable task.

Exceptions
Exception:
InterruptedException or an exception that was thrown from the task