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 / RichTextStyle.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  2.7 KB  |  125 lines

  1. package lotus.domino.local;
  2.  
  3. import lotus.domino.NotesException;
  4. import lotus.notes.JavaString;
  5.  
  6. public class RichTextStyle extends NotesBase implements lotus.domino.RichTextStyle {
  7.    private transient Session session;
  8.  
  9.    protected RichTextStyle() throws NotesException {
  10.    }
  11.  
  12.    protected RichTextStyle(Session var1, int var2) throws NotesException {
  13.       super(var2, 24);
  14.       if (var1 == null) {
  15.          throw new NotesException(4404, JavaString.resource.getString("missing_session_object"));
  16.       } else {
  17.          this.session = var1;
  18.          this.session.AddObject(this);
  19.       }
  20.    }
  21.  
  22.    protected void InternalFinalize() throws NotesException {
  23.       super.finalize();
  24.    }
  25.  
  26.    public void finalize() throws NotesException {
  27.       this.session.RemoveObject(this);
  28.       this.InternalFinalize();
  29.    }
  30.  
  31.    public void recycle() throws NotesException {
  32.       try {
  33.          this.session.RemoveObject(this);
  34.       } catch (NotesException var5) {
  35.       } finally {
  36.          super.Recycle();
  37.       }
  38.  
  39.    }
  40.  
  41.    public int getBold() throws NotesException {
  42.       ((NotesBase)this).CheckObject();
  43.       return ((NotesBase)this).PropGetInt(1805);
  44.    }
  45.  
  46.    public void setBold(int var1) throws NotesException {
  47.       ((NotesBase)this).CheckObject();
  48.       ((NotesBase)this).PropSetInt(1805, var1);
  49.    }
  50.  
  51.    public int getItalic() throws NotesException {
  52.       ((NotesBase)this).CheckObject();
  53.       return ((NotesBase)this).PropGetInt(1806);
  54.    }
  55.  
  56.    public void setItalic(int var1) throws NotesException {
  57.       ((NotesBase)this).CheckObject();
  58.       ((NotesBase)this).PropSetInt(1806, var1);
  59.    }
  60.  
  61.    public int getUnderline() throws NotesException {
  62.       ((NotesBase)this).CheckObject();
  63.       return ((NotesBase)this).PropGetInt(1807);
  64.    }
  65.  
  66.    public void setUnderline(int var1) throws NotesException {
  67.       ((NotesBase)this).CheckObject();
  68.       ((NotesBase)this).PropSetInt(1807, var1);
  69.    }
  70.  
  71.    public int getStrikeThrough() throws NotesException {
  72.       ((NotesBase)this).CheckObject();
  73.       return ((NotesBase)this).PropGetInt(1808);
  74.    }
  75.  
  76.    public void setStrikeThrough(int var1) throws NotesException {
  77.       ((NotesBase)this).CheckObject();
  78.       ((NotesBase)this).PropSetInt(1808, var1);
  79.    }
  80.  
  81.    public int getEffects() throws NotesException {
  82.       ((NotesBase)this).CheckObject();
  83.       return ((NotesBase)this).PropGetInt(1810);
  84.    }
  85.  
  86.    public void setEffects(int var1) throws NotesException {
  87.       ((NotesBase)this).CheckObject();
  88.       ((NotesBase)this).PropSetInt(1810, var1);
  89.    }
  90.  
  91.    public int getFont() throws NotesException {
  92.       ((NotesBase)this).CheckObject();
  93.       return ((NotesBase)this).PropGetInt(1809);
  94.    }
  95.  
  96.    public void setFont(int var1) throws NotesException {
  97.       ((NotesBase)this).CheckObject();
  98.       ((NotesBase)this).PropSetInt(1809, var1);
  99.    }
  100.  
  101.    public int getFontSize() throws NotesException {
  102.       ((NotesBase)this).CheckObject();
  103.       return ((NotesBase)this).PropGetInt(1811);
  104.    }
  105.  
  106.    public void setFontSize(int var1) throws NotesException {
  107.       ((NotesBase)this).CheckObject();
  108.       ((NotesBase)this).PropSetInt(1811, var1);
  109.    }
  110.  
  111.    public int getColor() throws NotesException {
  112.       ((NotesBase)this).CheckObject();
  113.       return ((NotesBase)this).PropGetInt(1812);
  114.    }
  115.  
  116.    public void setColor(int var1) throws NotesException {
  117.       ((NotesBase)this).CheckObject();
  118.       ((NotesBase)this).PropSetInt(1812, var1);
  119.    }
  120.  
  121.    public lotus.domino.Session getParent() throws NotesException {
  122.       return this.session;
  123.    }
  124. }
  125.