home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicHTML$BasicDocument.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  776 b   |  26 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.Color;
  4. import javax.swing.JComponent;
  5. import javax.swing.text.AttributeSet;
  6. import javax.swing.text.html.HTMLDocument;
  7. import javax.swing.text.html.StyleSheet;
  8.  
  9. class BasicHTML$BasicDocument extends HTMLDocument {
  10.    private JComponent host;
  11.  
  12.    BasicHTML$BasicDocument(StyleSheet var1) {
  13.       super(var1);
  14.       ((HTMLDocument)this).setPreservesUnknownTags(false);
  15.    }
  16.  
  17.    public Color getForeground(AttributeSet var1) {
  18.       Color var2 = super.getForeground(var1);
  19.       return var2 instanceof BasicHTML.TaggedColor && this.host != null ? this.host.getForeground() : var2;
  20.    }
  21.  
  22.    void setHost(JComponent var1) {
  23.       this.host = var1;
  24.    }
  25. }
  26.