< prev index next >

src/java.desktop/share/classes/sun/awt/shell/ShellFolder.java

Print this page




 182             } else {
 183                 return -1;
 184             }
 185         } else {
 186             if (isFileSystem()) {
 187                 return 1;
 188             } else {
 189                 return getName().compareTo(file2.getName());
 190             }
 191         }
 192     }
 193 
 194     /**
 195      * @param getLargeIcon whether to return large icon (ignored in base implementation)
 196      * @return The icon used to display this shell folder
 197      */
 198     public Image getIcon(boolean getLargeIcon) {
 199         return null;
 200     }
 201 







 202 
 203     // Static
 204 
 205     private static final ShellFolderManager shellFolderManager;
 206 
 207     private static final Invoker invoker;
 208 
 209     static {
 210         String managerClassName = (String)Toolkit.getDefaultToolkit().
 211                                       getDesktopProperty("Shell.shellFolderManager");
 212         Class<?> managerClass = null;
 213         try {
 214             managerClass = Class.forName(managerClassName, false, null);
 215             if (!ShellFolderManager.class.isAssignableFrom(managerClass)) {
 216                 managerClass = null;
 217             }
 218         // swallow the exceptions below and use default shell folder
 219         } catch(ClassNotFoundException e) {
 220         } catch(NullPointerException e) {
 221         } catch(SecurityException e) {




 182             } else {
 183                 return -1;
 184             }
 185         } else {
 186             if (isFileSystem()) {
 187                 return 1;
 188             } else {
 189                 return getName().compareTo(file2.getName());
 190             }
 191         }
 192     }
 193 
 194     /**
 195      * @param getLargeIcon whether to return large icon (ignored in base implementation)
 196      * @return The icon used to display this shell folder
 197      */
 198     public Image getIcon(boolean getLargeIcon) {
 199         return null;
 200     }
 201 
 202     /**
 203      * @param size size of the icon > 0
 204      * @return The icon used to display this shell folder
 205      */
 206     public Image getIcon(int size) {
 207         return null;
 208     }
 209 
 210     // Static
 211 
 212     private static final ShellFolderManager shellFolderManager;
 213 
 214     private static final Invoker invoker;
 215 
 216     static {
 217         String managerClassName = (String)Toolkit.getDefaultToolkit().
 218                                       getDesktopProperty("Shell.shellFolderManager");
 219         Class<?> managerClass = null;
 220         try {
 221             managerClass = Class.forName(managerClassName, false, null);
 222             if (!ShellFolderManager.class.isAssignableFrom(managerClass)) {
 223                 managerClass = null;
 224             }
 225         // swallow the exceptions below and use default shell folder
 226         } catch(ClassNotFoundException e) {
 227         } catch(NullPointerException e) {
 228         } catch(SecurityException e) {


< prev index next >