home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1996 October / PCO_10.ISO / filesbbs / clearweb.arj / CVIEW.CMP / APPLET.ZIP / BookmarkNode.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-08-15  |  1.5 KB  |  51 lines

  1. import java.awt.Image;
  2.  
  3. class BookmarkNode implements OutlineNodeData {
  4.    String Title;
  5.    String URL;
  6.    String Desc;
  7.    boolean Secondary;
  8.    Image Icon;
  9.  
  10.    public BookmarkNode(String title, String url, String desc) {
  11.       this.Title = new String(title);
  12.       this.URL = new String(url);
  13.       this.Desc = new String(desc);
  14.       this.Secondary = false;
  15.       this.Icon = null;
  16.    }
  17.  
  18.    public BookmarkNode(String title, String url, String desc, Image icon) {
  19.       this(title, url, desc);
  20.       this.Icon = icon;
  21.    }
  22.  
  23.    public String NodeTitle() {
  24.       return this.Title;
  25.    }
  26.  
  27.    public boolean IsSecondary() {
  28.       return this.Secondary;
  29.    }
  30.  
  31.    public Image NodeIcon() {
  32.       return this.Icon;
  33.    }
  34.  
  35.    public String NodeURL() {
  36.       return this.URL;
  37.    }
  38.  
  39.    public String NodeDesc() {
  40.       return this.Desc;
  41.    }
  42.  
  43.    public void setSecondary(boolean f) {
  44.       this.Secondary = f;
  45.    }
  46.  
  47.    public void setIcon(Image icon) {
  48.       this.Icon = icon;
  49.    }
  50. }
  51.