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 / html / HTMLDocument$HTMLReader$StyleAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  37 lines

  1. package javax.swing.text.html;
  2.  
  3. import java.util.Vector;
  4. import javax.swing.text.MutableAttributeSet;
  5. import javax.swing.text.html.HTML.Attribute;
  6.  
  7. class HTMLDocument$HTMLReader$StyleAction extends HTMLDocument.HTMLReader.TagAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    HTMLDocument$HTMLReader$StyleAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  17.       if (this.this$1.inHead) {
  18.          if (this.this$1.styles == null) {
  19.             this.this$1.styles = new Vector(3);
  20.          }
  21.  
  22.          this.this$1.styles.addElement(var1);
  23.          this.this$1.styles.addElement(var2.getAttribute(Attribute.TYPE));
  24.          this.this$1.inStyle = true;
  25.       }
  26.  
  27.    }
  28.  
  29.    public void end(HTML.Tag var1) {
  30.       this.this$1.inStyle = false;
  31.    }
  32.  
  33.    boolean isEmpty(HTML.Tag var1) {
  34.       return false;
  35.    }
  36. }
  37.