01: /*
02: * @(#)FirefoxSearchBarIconsFactory.java 10/12/2005
03: *
04: * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.swing;
07:
08: import com.jidesoft.icons.IconsFactory;
09:
10: import javax.swing.*;
11:
12: /**
13: * A helper class to contain icons for SearchableBar.
14: */
15: public class SearchableBarIconsFactory {
16:
17: public static class Buttons {
18: public final static String CLOSE = "icons/close.png";
19: public final static String CLOSE_ROLLOVER = "icons/closeR.png";
20: public final static String HIGHLIGHTS = "icons/highlights.png";
21: public final static String HIGHLIGHTS_SELECTED = "icons/highlightsS.png";
22: public final static String HIGHLIGHTS_DISABLED = "icons/highlightsD.png";
23: public final static String HIGHLIGHTS_ROLLOVER = "icons/highlightsR.png";
24: public final static String HIGHLIGHTS_ROLLOVER_SELECTED = "icons/highlightsRS.png";
25: public final static String NEXT = "icons/next.png";
26: public final static String NEXT_ROLLOVER = "icons/nextR.png";
27: public final static String NEXT_DISABLED = "icons/nextD.png";
28: public final static String PREVIOUS = "icons/previous.png";
29: public final static String PREVIOUS_ROLLOVER = "icons/previousR.png";
30: public final static String PREVIOUS_DISABLED = "icons/previousD.png";
31: public final static String ERROR = "icons/error.png";
32: public final static String REPEAT = "icons/repeat.png";
33: }
34:
35: public static ImageIcon getImageIcon(String name) {
36: if (name != null)
37: return IconsFactory.getImageIcon(
38: SearchableBarIconsFactory.class, name);
39: else
40: return null;
41: }
42:
43: public static void main(String[] argv) {
44: IconsFactory.generateHTML(SearchableBarIconsFactory.class);
45: }
46:
47: }
|