com.realtime.crossfire.jxclient.util
Class ResourceUtils

java.lang.Object
  extended by com.realtime.crossfire.jxclient.util.ResourceUtils

public class ResourceUtils
extends java.lang.Object

Utility class for loading information from resources.


Field Summary
static java.lang.String APPLICATION_ICON
          The resource name for the application icon.
static java.lang.String NEXT_GROUP_FACE
          The resource for "Click here for next group of items" buttons.
static java.lang.String PREV_GROUP_FACE
          The resource for "Click here for previous group of items" buttons.
static java.lang.String UNKNOWN_PNG
          The resource name of the "unknown" face.
 
Constructor Summary
private ResourceUtils()
          Private constructor to prevent instantiation.
 
Method Summary
static javax.swing.ImageIcon loadImage(java.lang.String name)
          Loads an image file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_ICON

@NotNull
public static final java.lang.String APPLICATION_ICON
The resource name for the application icon.

See Also:
Constant Field Values

NEXT_GROUP_FACE

@NotNull
public static final java.lang.String NEXT_GROUP_FACE
The resource for "Click here for next group of items" buttons.

See Also:
Constant Field Values

PREV_GROUP_FACE

@NotNull
public static final java.lang.String PREV_GROUP_FACE
The resource for "Click here for previous group of items" buttons.

See Also:
Constant Field Values

UNKNOWN_PNG

@NotNull
public static final java.lang.String UNKNOWN_PNG
The resource name of the "unknown" face.

See Also:
Constant Field Values
Constructor Detail

ResourceUtils

private ResourceUtils()
Private constructor to prevent instantiation.

Method Detail

loadImage

@NotNull
public static javax.swing.ImageIcon loadImage(@NotNull
                                                      java.lang.String name)
                                       throws java.io.IOException
Loads an image file.

Parameters:
name - the resource name to load
Returns:
the image
Throws:
java.io.IOException - if the image cannot be loaded