Class Link

java.lang.Object
  |
  +--Link
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
CatLink, PicLink

public abstract class Link
extends java.lang.Object
implements java.lang.Comparable

A Link object is a generic visual element of a web page to which an HREF can be made. Subclasses may represent such things as links to pictures and links to other web pages.

Author:
John E. Darrow (c) 2000, 2001

Field Summary
protected  java.lang.String caption
          Text which can be used as as a brief description of the instance.
protected  java.lang.String filename
          The filename of the associated web entity (either a picture or a web page).
protected  java.lang.String htmlBaseName
          The basename of the corresponding web page (no .html).
protected  java.lang.String keywords
          HTML keywords appropriate for a web page representing this CatLink.
protected static java.lang.String lineend
          A convenience variable.
 
Constructor Summary
Link()
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Implements Comparable so Links are sorted by caption.
 java.lang.String getIconEditorsPick()
          Returns the HTML expression that has the visible word NEW!
 java.lang.String getIconFirstInCat()
          Returns the HTML expression that has the visible word NEW!
 java.lang.String getIconNew()
          Returns the HTML expression that has the visible word NEW!
abstract  void toHtml()
          Turns the item into an html file.
protected static java.lang.String toUniqueKeywords(java.lang.String inKeywords)
          Returns a String containing one occurrence of each keyword found in inKeywords.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caption

protected java.lang.String caption
Text which can be used as as a brief description of the instance.

filename

protected java.lang.String filename
The filename of the associated web entity (either a picture or a web page).

htmlBaseName

protected java.lang.String htmlBaseName
The basename of the corresponding web page (no .html).

keywords

protected java.lang.String keywords
HTML keywords appropriate for a web page representing this CatLink.

lineend

protected static final java.lang.String lineend
A convenience variable.
Constructor Detail

Link

public Link()
Method Detail

getIconNew

public java.lang.String getIconNew()
Returns the HTML expression that has the visible word NEW!

getIconEditorsPick

public java.lang.String getIconEditorsPick()
Returns the HTML expression that has the visible word NEW!

getIconFirstInCat

public java.lang.String getIconFirstInCat()
Returns the HTML expression that has the visible word NEW!

compareTo

public int compareTo(java.lang.Object other)
Implements Comparable so Links are sorted by caption.
Specified by:
compareTo in interface java.lang.Comparable

toHtml

public abstract void toHtml()
Turns the item into an html file.

toUniqueKeywords

protected static java.lang.String toUniqueKeywords(java.lang.String inKeywords)
Returns a String containing one occurrence of each keyword found in inKeywords.