com.novell.admin.common.ui
Class ImageCache

java.lang.Object
  |
  +--com.novell.admin.common.ui.ImageCache

public class ImageCache
extends java.lang.Object


Constructor Summary
ImageCache()
          default constructor
ImageCache(int items)
          constructor specifiying how many items are desired in the cache
 
Method Summary
 void add(java.awt.Image image, java.lang.String imageStr)
          adds the given image/string combo to the cache
 java.awt.Image find(java.lang.String strImage)
          checks the cache for the given image
 void remove(java.lang.String imageStr)
          removes the given image/string combo to the start of the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCache

public ImageCache()
default constructor

ImageCache

public ImageCache(int items)
constructor specifiying how many items are desired in the cache
Parameters:
I-items - initial number of items in the cache
Method Detail

find

public final java.awt.Image find(java.lang.String strImage)
checks the cache for the given image
Parameters:
I-imageStr - the file name of the image to load
Returns:
Image the image, if found; null otherwise

add

public final void add(java.awt.Image image,
                      java.lang.String imageStr)
adds the given image/string combo to the cache
Parameters:
I-image - The the image to add
I-strImage - The image name to add
Throws:
java.lang.IllegalArgumentException - the image string or image parameter was null

remove

public final void remove(java.lang.String imageStr)
removes the given image/string combo to the start of the cache
Parameters:
I-image - The the image to add
Throws:
java.lang.IllegalArgumentException - the image string parameter was null


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.