home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / notes / internal / InfoPaneRootItem.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  2.2 KB  |  57 lines

  1. package lotus.notes.internal;
  2.  
  3. import java.util.Enumeration;
  4.  
  5. class InfoPaneRootItem implements InfoPaneItem {
  6.    private InfoPaneVector vector = new InfoPaneVector();
  7.  
  8.    InfoPaneTopItem FindItem(String var1) throws InfoPaneException {
  9.       return (InfoPaneTopItem)this.vector.Find(var1);
  10.    }
  11.  
  12.    InfoPaneTopItem AddItem(InfoPaneTopItem var1) throws InfoPaneException {
  13.       return (InfoPaneTopItem)this.vector.Insert(var1);
  14.    }
  15.  
  16.    public boolean HasSubCategory() {
  17.       return this.vector != null && this.vector.size() > 0;
  18.    }
  19.  
  20.    public Enumeration GetEnumeration() {
  21.       return this.vector == null ? null : this.vector.elements();
  22.    }
  23.  
  24.    public String GetName() {
  25.       return "";
  26.    }
  27.  
  28.    public String GetLongName() {
  29.       return "";
  30.    }
  31.  
  32.    public boolean HasLongName() {
  33.       return false;
  34.    }
  35.  
  36.    public boolean CanPaste() {
  37.       return false;
  38.    }
  39.  
  40.    public void Print(String var1, boolean var2) {
  41.       if (var2) {
  42.          System.out.println("GetLongName()");
  43.       } else if (!this.HasLongName() && !this.CanPaste()) {
  44.          System.out.println("GetName()");
  45.       }
  46.  
  47.       if (this.HasSubCategory()) {
  48.          Enumeration var3 = this.GetEnumeration();
  49.  
  50.          while(var3.hasMoreElements()) {
  51.             ((InfoPaneItem)var3.nextElement()).Print(var1 + "  ", var2);
  52.          }
  53.       }
  54.  
  55.    }
  56. }
  57.