org.basex.gui
Class GUIFS

java.lang.Object
  extended by org.basex.gui.GUIFS

public final class GUIFS
extends Object

This class organizes icons and data types for common file types.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Nested Class Summary
static class GUIFS.Type
          File Types.
 
Field Summary
static Image[] folder1
          Closed folder.
static Image[] folder2
          Opened folder.
 
Method Summary
static String desc(byte[] name, boolean dir)
          Returns the description for the specified file.
static Image images(byte[] name, boolean big)
          Returns the suffix image for the specified file.
static Image images(byte[] name, int n)
          Returns the suffix image for the specified file.
static GUIFS.Type mime(byte[] name)
          Returns the suffix image for the specified file.
static short type(byte[] name)
          Returns the file type for the specified filename.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

folder1

public static Image[] folder1
Closed folder.


folder2

public static Image[] folder2
Opened folder.

Method Detail

type

public static short type(byte[] name)
Returns the file type for the specified filename.

Parameters:
name - file name
Returns:
type

images

public static Image images(byte[] name,
                           int n)
Returns the suffix image for the specified file.

Parameters:
name - file name
n - image offset (0/1)
Returns:
image

images

public static Image images(byte[] name,
                           boolean big)
Returns the suffix image for the specified file.

Parameters:
name - file name
big - small/big image
Returns:
image

mime

public static GUIFS.Type mime(byte[] name)
Returns the suffix image for the specified file.

Parameters:
name - file name
Returns:
image

desc

public static String desc(byte[] name,
                          boolean dir)
Returns the description for the specified file.

Parameters:
name - file name
dir - directory
Returns:
description