uic.widgets.filechooser
Class Shortcut

java.lang.Object
  extended by uic.widgets.filechooser.Shortcut

public class Shortcut
extends Object

Class for shortcut support in the filechooser. This class will support KDE shortcuts and Windows Shortcut files


Nested Class Summary
protected static class Shortcut.DefaultShortcut
           
protected static class Shortcut.KDEShortcut
           
protected static class Shortcut.WindowsShortcut
           
 
Constructor Summary
Shortcut()
           
 
Method Summary
static File getDestination(File shortcut)
           
protected static uic.widgets.filechooser.Shortcut.ShortcutInterface getInstance()
           
static boolean isShortcut(File f)
          Returns true if the file is a shortcut.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shortcut

public Shortcut()
Method Detail

getInstance

protected static uic.widgets.filechooser.Shortcut.ShortcutInterface getInstance()

isShortcut

public static boolean isShortcut(File f)
                          throws IOException
Returns true if the file is a shortcut. Currently only supports windows shortcut files.. (kind of)

Parameters:
f - the file to check
Returns:
true if f is a shortcut
Throws:
IOException

getDestination

public static File getDestination(File shortcut)
                           throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence