KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > tool > common > IconSet


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  */

23 package org.enhydra.tool.common;
24
25 // Standard imports
26
import javax.swing.ImageIcon JavaDoc;
27 //
28
public class IconSet {
29     // strings not to be resourced
30
private static final String JavaDoc DELETE_ROW_GIF =
31         "org/enhydra/tool/common/media/gallant/DeleteRow.gif"; //nores
32
private static final String JavaDoc DOWN_GIF =
33         "org/enhydra/tool/common/media/gallant/Down.gif"; //nores
34
private static final String JavaDoc ROW_GIF =
35         "org/enhydra/tool/common/media/gallant/Row.gif"; //nores
36
private static final String JavaDoc LARGE_GIF =
37         "org/enhydra/tool/common/media/lutris/largeicon.gif"; // nores
38
private static final String JavaDoc NEW_ROW_GIF =
39         "org/enhydra/tool/common/media/gallant/NewRow.gif"; //nores
40
private static final String JavaDoc WIZARD_JPG =
41         "org/enhydra/tool/common/media/lutris/otterwizard.jpg"; //nores
42
private static final String JavaDoc SMALL_GIF =
43         "org/enhydra/tool/common/media/lutris/smallicon.gif"; // nores
44
private static final String JavaDoc UP_GIF =
45         "org/enhydra/tool/common/media/gallant/Up.gif"; //nores
46
private static final String JavaDoc UNDO_GIF =
47         "org/enhydra/tool/common/media/gallant/Undo.gif"; //nores
48

49
50     public IconSet() {}
51
52     public static ImageIcon JavaDoc getDeleteRowIcon() {
53         ImageIcon JavaDoc icon = null;
54         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.DELETE_ROW_GIF));
55         return icon;
56     }
57
58     public static ImageIcon JavaDoc getDownIcon() {
59         ImageIcon JavaDoc icon = null;
60         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.DOWN_GIF));
61         return icon;
62     }
63
64     public static ImageIcon JavaDoc getRowIcon() {
65         ImageIcon JavaDoc icon = null;
66         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.ROW_GIF));
67         return icon;
68     }
69
70     public static ImageIcon JavaDoc getLargeIcon() {
71         ImageIcon JavaDoc icon = null;
72         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.LARGE_GIF));
73         return icon;
74     }
75
76     public static ImageIcon JavaDoc getNewRowIcon() {
77         ImageIcon JavaDoc icon = null;
78         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.NEW_ROW_GIF));
79         return icon;
80     }
81
82     public static ImageIcon JavaDoc getOtterWizard() {
83         ImageIcon JavaDoc icon = null;
84         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.WIZARD_JPG));
85         return icon;
86     }
87
88     public static ImageIcon JavaDoc getSmallIcon() {
89         ImageIcon JavaDoc icon = null;
90         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.SMALL_GIF));
91         return icon;
92     }
93
94     public static ImageIcon JavaDoc getUpIcon() {
95         ImageIcon JavaDoc icon = null;
96         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.UP_GIF));
97         return icon;
98     }
99
100     public static ImageIcon JavaDoc getUndoIcon() {
101         ImageIcon JavaDoc icon = null;
102         icon = new ImageIcon JavaDoc(ClassLoader.getSystemResource(IconSet.UNDO_GIF));
103         return icon;
104     }
105 }
106
Popular Tags