< 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      * Returns the icon of the specified size used to display this shell folder.
 204      *
 205      * @param size size of the icon > 0(Valid range: 1 to 256)
 206      * @return The icon of the specified size used to display this shell folder
 207      */
 208     public Image getIcon(int size) {
 209         return null;
 210     }
 211 
 212     // Static
 213 
 214     private static final ShellFolderManager shellFolderManager;
 215 
 216     private static final Invoker invoker;
 217 
 218     static {
 219         String managerClassName = (String)Toolkit.getDefaultToolkit().
 220                                       getDesktopProperty("Shell.shellFolderManager");
 221         Class<?> managerClass = null;
 222         try {
 223             managerClass = Class.forName(managerClassName, false, null);
 224             if (!ShellFolderManager.class.isAssignableFrom(managerClass)) {
 225                 managerClass = null;
 226             }
 227         // swallow the exceptions below and use default shell folder
 228         } catch(ClassNotFoundException e) {
 229         } catch(NullPointerException e) {
 230         } catch(SecurityException e) {


< prev index next >