< prev index next >

src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java

Print this page

        

*** 223,250 **** private static File[] roots; /** ! * @param key a <code>String</code> * "fileChooserDefaultFolder": ! * Returns a <code>File</code> - the default shellfolder for a new filechooser * "roots": ! * Returns a <code>File[]</code> - containing the root(s) of the displayable hierarchy * "fileChooserComboBoxFolders": ! * Returns a <code>File[]</code> - an array of shellfolders representing the list to * show by default in the file chooser's combobox * "fileChooserShortcutPanelFolders": ! * Returns a <code>File[]</code> - 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 <icon>": ! * Returns an <code>Image</code> - icon can be ListView, DetailsView, UpFolder, NewFolder or * ViewMenu (Windows only). * "optionPaneIcon iconName": ! * Returns an <code>Image</code> - icon from the system icon list * * @return An Object matching the key string. */ public Object get(String key) { if (key.equals("fileChooserDefaultFolder")) { --- 223,250 ---- private static File[] roots; /** ! * @param key a {@code String} * "fileChooserDefaultFolder": ! * Returns a {@code File} - the default shellfolder for a new filechooser * "roots": ! * Returns a {@code File[]} - containing the root(s) of the displayable hierarchy * "fileChooserComboBoxFolders": ! * Returns a {@code File[]} - an array of shellfolders representing the list to * show by default in the file chooser's combobox * "fileChooserShortcutPanelFolders": ! * Returns a {@code 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 <icon>": ! * Returns an {@code Image} - icon can be ListView, DetailsView, UpFolder, NewFolder or * ViewMenu (Windows only). * "optionPaneIcon iconName": ! * Returns an {@code Image} - icon from the system icon list * * @return An Object matching the key string. */ public Object get(String key) { if (key.equals("fileChooserDefaultFolder")) {
*** 413,423 **** return filesStream.filter((file) -> checkFile(file, sm) != null) .toArray(File[]::new); } /** ! * Does <code>dir</code> represent a "computer" such as a node on the network, or * "My Computer" on the desktop. */ public boolean isComputerNode(final File dir) { if (dir != null && dir == getDrives()) { return true; --- 413,423 ---- return filesStream.filter((file) -> checkFile(file, sm) != null) .toArray(File[]::new); } /** ! * Does {@code dir} represent a "computer" such as a node on the network, or * "My Computer" on the desktop. */ public boolean isComputerNode(final File dir) { if (dir != null && dir == getDrives()) { return true;
< prev index next >