cct.tools
Class FileUtilities

java.lang.Object
  extended by cct.tools.FileUtilities

public class FileUtilities
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private) static javax.swing.ImageIcon audioFileImage
           
(package private) static java.lang.String defaultProperiesFile_16x16
           
(package private) static java.lang.String defaultProperiesFile_32x32
           
(package private) static javax.swing.ImageIcon document
           
(package private) static javax.swing.ImageIcon document_32x32
           
(package private) static java.util.HashMap extensions16x16
           
(package private) static java.util.HashMap extensions32x32
           
(package private) static javax.swing.ImageIcon folder
           
(package private) static javax.swing.ImageIcon folder_32x32
           
(package private) static javax.swing.ImageIcon gaussianImage
           
(package private) static javax.swing.ImageIcon htmlFileImage
           
(package private) static java.lang.String icons_16x16_postfix
           
(package private) static java.lang.String icons_32x32_postfix
           
(package private) static java.util.HashMap icons16x16
           
(package private) static java.util.HashMap icons32x32
           
(package private) static javax.swing.ImageIcon imageFileImage
           
(package private) static javax.swing.ImageIcon javaFileImage
           
(package private) static javax.swing.ImageIcon mdlImage
           
(package private) static javax.swing.ImageIcon multipleItems_32x32
           
(package private) static javax.swing.ImageIcon triposImage
           
 
Method Summary
static java.lang.String getFileExtension(java.lang.String filename)
          Returns file extension
static java.lang.String getFileName(java.lang.String path)
           
static javax.swing.ImageIcon getFolderIcon32x32()
           
static javax.swing.ImageIcon getIcon16x16(java.lang.String filename)
          Returns image icon
static javax.swing.ImageIcon getIcon32x32(java.lang.String filename)
          Returns image icon
static javax.swing.ImageIcon getMultipleItemsIcon32x32()
           
static void initializeIcons_16x16(java.lang.String propertiesName)
          Initializes 16x16 icons
static void initializeIcons_32x32(java.lang.String propertiesName)
          Initializes 32x32 icons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultProperiesFile_16x16

static java.lang.String defaultProperiesFile_16x16

defaultProperiesFile_32x32

static java.lang.String defaultProperiesFile_32x32

icons_16x16_postfix

static java.lang.String icons_16x16_postfix

icons_32x32_postfix

static java.lang.String icons_32x32_postfix

folder

static final javax.swing.ImageIcon folder

folder_32x32

static final javax.swing.ImageIcon folder_32x32

multipleItems_32x32

static final javax.swing.ImageIcon multipleItems_32x32

document

static final javax.swing.ImageIcon document

document_32x32

static final javax.swing.ImageIcon document_32x32

gaussianImage

static final javax.swing.ImageIcon gaussianImage

triposImage

static final javax.swing.ImageIcon triposImage

mdlImage

static javax.swing.ImageIcon mdlImage

imageFileImage

static javax.swing.ImageIcon imageFileImage

javaFileImage

static javax.swing.ImageIcon javaFileImage

htmlFileImage

static javax.swing.ImageIcon htmlFileImage

audioFileImage

static javax.swing.ImageIcon audioFileImage

icons16x16

static java.util.HashMap icons16x16

extensions16x16

static java.util.HashMap extensions16x16

icons32x32

static java.util.HashMap icons32x32

extensions32x32

static java.util.HashMap extensions32x32
Method Detail

getIcon16x16

public static javax.swing.ImageIcon getIcon16x16(java.lang.String filename)
Returns image icon

Parameters:
filename - String
Returns:
ImageIcon

getIcon32x32

public static javax.swing.ImageIcon getIcon32x32(java.lang.String filename)
Returns image icon

Parameters:
filename - String
Returns:
ImageIcon

getFolderIcon32x32

public static javax.swing.ImageIcon getFolderIcon32x32()

getMultipleItemsIcon32x32

public static javax.swing.ImageIcon getMultipleItemsIcon32x32()

getFileExtension

public static java.lang.String getFileExtension(java.lang.String filename)
Returns file extension

Parameters:
filename - String - [path]/file name
Returns:
String File extension

initializeIcons_16x16

public static void initializeIcons_16x16(java.lang.String propertiesName)
Initializes 16x16 icons

Parameters:
propertiesName - String

initializeIcons_32x32

public static void initializeIcons_32x32(java.lang.String propertiesName)
Initializes 32x32 icons

Parameters:
propertiesName - String

getFileName

public static java.lang.String getFileName(java.lang.String path)