01: /*
02: * @(#)TreeIconsFactory.java
03: *
04: * Copyright 2002 JIDE Software Inc. All rights reserved.
05: */
06: package com.jidesoft.dialog;
07:
08: import com.jidesoft.icons.IconsFactory;
09:
10: import javax.swing.*;
11:
12: /**
13: * A helper class to contain icons for MultiplePage Dialog component.
14: */
15: class TreeIconsFactory {
16:
17: static class CellRenderer {
18: public final static String SELECTED_C16 = "icons/selected-c16.gif";
19: public final static String SELECTED_B16 = "icons/selected-b16.gif";
20: public final static String BLANK_16 = "icons/blank-16.gif";
21: }
22:
23: public static ImageIcon getImageIcon(String name) {
24: if (name != null)
25: return IconsFactory.getImageIcon(TreeIconsFactory.class,
26: name);
27: else
28: return null;
29: }
30:
31: public static void main(String[] argv) {
32: IconsFactory.generateHTML(TreeIconsFactory.class);
33: }
34:
35: }
|