Statistics
| Revision:

root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / com / izforge / izpack / gui / IconsDatabase.java @ 15280

History | View | Annotate | Download (1.59 KB)

1
/*
2
 *  $Id: IconsDatabase.java,v 1.1 2006/06/14 07:29:07 cesar Exp $
3
 *  IzPack
4
 *  Copyright (C) 2001-2004 Julien Ponge
5
 *
6
 *  File :               IconsDatabase.java
7
 *  Description :        Represents an icons database.
8
 *  Author's email :     julien@izforge.com
9
 *  Author's Website :   http://www.izforge.com
10
 *
11
 *  This program is free software; you can redistribute it and/or
12
 *  modify it under the terms of the GNU General Public License
13
 *  as published by the Free Software Foundation; either version 2
14
 *  of the License, or any later version.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *
21
 *  You should have received a copy of the GNU General Public License
22
 *  along with this program; if not, write to the Free Software
23
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
 */
25
package com.izforge.izpack.gui;
26

    
27
import java.util.TreeMap;
28

    
29
import javax.swing.ImageIcon;
30

    
31
/**
32
 *  The icons database class.
33
 *
34
 * @author     Julien Ponge
35
 *    October 27, 2002
36
 */
37
public class IconsDatabase extends TreeMap
38
{
39
  /**  The constructor.  */
40
  public IconsDatabase()
41
  {
42
    super();
43
  }
44

    
45
  /**
46
   *  Convenience method to retrieve an element.
47
   *
48
   * @param  key  The icon key.
49
   * @return      The icon as an ImageIcon object.
50
   */
51
  public ImageIcon getImageIcon(String key)
52
  {
53
    return (ImageIcon) get(key);
54
  }
55
}