|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.dj.nativeswing.swtimpl.utilities.FileTypeLauncher
public class FileTypeLauncher
A utility class to get the launchers of certain file types.
Constructor Summary | |
---|---|
FileTypeLauncher()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
static String[] |
getAllRegisteredExtensions()
Get all the registered file extensions. |
static ImageIcon |
getDefaultIcon()
Get the default icon for files that don't have a custom icon. |
ImageIcon |
getIcon()
Get the icon associated with this file type. |
static Dimension |
getIconSize()
Get the size of the icons that can be obtained. |
static FileTypeLauncher |
getLauncher(String fileName)
Get the launcher for a given file name, which may or may not represent an existing file. |
static FileTypeLauncher[] |
getLaunchers()
Some global loading of data is performed the first time, if it is needed. |
String |
getName()
Get the name of the launcher. |
String[] |
getRegisteredExtensions()
Get the extensions of the files that can be launched. |
int |
hashCode()
|
void |
launch(String filePath)
Launch a file using this launcher. |
static void |
load()
Explicitely load the data if it is not yet loaded, instead of letting the system perform the appropriate loading when needed. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTypeLauncher()
Method Detail |
---|
public static void load()
public static String[] getAllRegisteredExtensions()
public String[] getRegisteredExtensions()
public String getName()
public ImageIcon getIcon()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void launch(String filePath)
filePath
- the path to the file to launch.public static FileTypeLauncher getLauncher(String fileName)
public static FileTypeLauncher[] getLaunchers()
public static ImageIcon getDefaultIcon()
public static Dimension getIconSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |