2 * HelpIconTitledURLItem.java
\r
4 * Created on 15 November 2001, 14:25
\r
5 * $Header: /VisTA/CID/Components/HelpIconTitledURLItem.java 2 15/11/01 15:39 Tj $
\r
7 * $History: HelpIconTitledURLItem.java $
\r
9 * ***************** Version 2 *****************
\r
10 * User: Tj Date: 15/11/01 Time: 15:39
\r
11 * Updated in $/VisTA/CID/Components
\r
12 * Altered static Icon name for online Icon
\r
14 * ***************** Version 1 *****************
\r
15 * User: Tj Date: 15/11/01 Time: 15:36
\r
16 * Created in $/VisTA/CID/Components
\r
17 * Help-specific version of LocalityIconTitledURLItem
\r
20 package org.tjworld.components;
\r
22 import java.net.URL;
\r
23 import javax.swing.Icon;
\r
24 import javax.swing.ImageIcon;
\r
26 /** Provides local and online icons that indicate where the URL is located
\r
27 * @see IconTitledURLItem
\r
28 * @see TitledURLItem
\r
30 * @version 1.0 15 Nov, 2001
\r
32 public class HelpIconTitledURLItem extends LocalityIconTitledURLItem {
\r
33 protected static Icon helpLocalIcon = new ImageIcon("org/tjworld/components/media/help.gif");
\r
34 protected static Icon helpOnlineIcon = new ImageIcon("org/tjworld/components/media/helpOnline.gif");
\r
36 /** Creates new HelpIconTitledURLItem */
\r
37 public HelpIconTitledURLItem() {
\r
38 this((Icon)null, (Icon)null, (String)null, (URL)null, true);
\r
41 /** Creates new HelpIconTitledURLItem with object-only Icons.
\r
42 * Sets the standard Help class-wide Icons too.
\r
43 * @param url the URL
\r
44 * @param title the associated Title
\r
45 * @param local true to use the 'local' indicator icon, false to use the 'online' version
\r
48 public HelpIconTitledURLItem(String title, URL url, boolean local) {
\r
49 this((Icon)null, (Icon)null, title, url, local);
\r
52 /** Creates new HelpIconTitledURLItem with object-only Icons.
\r
53 * Sets the standard Help class-wide Icons too.
\r
54 * @param localIcon the object-only local Icon
\r
55 * @param onlineIcon the object-only online Icon
\r
56 * @param url the URL
\r
57 * @param title the associated Title
\r
58 * @param local true to use the 'local' indicator icon, false to use the 'online' version
\r
61 public HelpIconTitledURLItem(Icon localIcon, Icon onlineIcon, String title, URL url, boolean local) {
\r
62 super(localIcon, onlineIcon, title, url, local); // choose which Icon to use
\r
63 setClassLocalIcon(helpLocalIcon);
\r
64 setClassOnlineIcon(helpOnlineIcon);
\r