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

  1. package lotus.domino.local;
  2.  
  3. import lotus.domino.NotesException;
  4. import lotus.notes.JavaString;
  5.  
  6. public class RichTextTab extends NotesBase implements lotus.domino.RichTextTab {
  7.    private transient RichTextParagraphStyle parent;
  8.  
  9.    private native void Nclear();
  10.  
  11.    protected RichTextTab() throws NotesException {
  12.    }
  13.  
  14.    protected RichTextTab(RichTextParagraphStyle var1, int var2) throws NotesException {
  15.       super(var2, 27);
  16.       if (var1 == null) {
  17.          throw new NotesException(4410, JavaString.resource.getString("missing_richtextparagraphstyle_object"));
  18.       } else {
  19.          this.parent = var1;
  20.          this.parent.AddTab(this);
  21.       }
  22.    }
  23.  
  24.    protected void InternalFinalize() throws NotesException {
  25.       super.finalize();
  26.    }
  27.  
  28.    public void finalize() throws NotesException {
  29.       this.parent.RemoveTab(this);
  30.       this.InternalFinalize();
  31.    }
  32.  
  33.    public void recycle() throws NotesException {
  34.       try {
  35.          this.parent.RemoveTab(this);
  36.       } catch (NotesException var5) {
  37.       } finally {
  38.          super.Recycle();
  39.       }
  40.  
  41.    }
  42.  
  43.    public void clear() throws NotesException {
  44.       ((NotesBase)this).CheckObject();
  45.       this.parent.RemoveTab(this);
  46.       this.Nclear();
  47.    }
  48.  
  49.    public int getPosition() throws NotesException {
  50.       ((NotesBase)this).CheckObject();
  51.       return ((NotesBase)this).PropGetInt(1877);
  52.    }
  53.  
  54.    public int getType() throws NotesException {
  55.       ((NotesBase)this).CheckObject();
  56.       return ((NotesBase)this).PropGetInt(1878);
  57.    }
  58. }
  59.