java.lang.Objectcom.realtime.crossfire.jxclient.util.ResourceUtils
public class ResourceUtils
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 | 
|---|
@NotNull public static final java.lang.String APPLICATION_ICON
@NotNull public static final java.lang.String NEXT_GROUP_FACE
@NotNull public static final java.lang.String PREV_GROUP_FACE
@NotNull public static final java.lang.String UNKNOWN_PNG
| Constructor Detail | 
|---|
private ResourceUtils()
| Method Detail | 
|---|
@NotNull
public static javax.swing.ImageIcon loadImage(@NotNull
                                                      java.lang.String name)
                                       throws java.io.IOException
name - the resource name to load
java.io.IOException - if the image cannot be loaded