home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / text / rtf / RTFReader$DocumentDestination.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  37 lines

  1. package javax.swing.text.rtf;
  2.  
  3. import javax.swing.text.AttributeSet;
  4. import javax.swing.text.BadLocationException;
  5.  
  6. class RTFReader$DocumentDestination extends RTFReader.TextHandlingDestination implements RTFReader.Destination {
  7.    // $FF: synthetic field
  8.    private final RTFReader this$0;
  9.  
  10.    RTFReader$DocumentDestination(RTFReader var1) {
  11.       super(var1);
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void deliverText(String var1, AttributeSet var2) {
  16.       try {
  17.          this.this$0.target.insertString(this.this$0.target.getLength(), var1, ((RTFReader.AttributeTrackingDestination)this).currentTextAttributes());
  18.       } catch (BadLocationException var4) {
  19.          throw new InternalError(((Throwable)var4).getMessage());
  20.       }
  21.    }
  22.  
  23.    public void finishParagraph(AttributeSet var1, AttributeSet var2) {
  24.       int var3 = this.this$0.target.getLength();
  25.  
  26.       try {
  27.          this.this$0.target.insertString(var3, "\n", var2);
  28.          this.this$0.target.setParagraphAttributes(var3, 1, var1, true);
  29.       } catch (BadLocationException var5) {
  30.          throw new InternalError(((Throwable)var5).getMessage());
  31.       }
  32.    }
  33.  
  34.    public void endSection() {
  35.    }
  36. }
  37.