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$MetaAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.6 KB  |  36 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.MutableAttributeSet;
  4. import javax.swing.text.html.HTML.Attribute;
  5. import javax.swing.text.html.HTMLDocument.HTMLReader;
  6.  
  7. class HTMLDocument$HTMLReader$MetaAction extends HTMLDocument.HTMLReader.HiddenAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    HTMLDocument$HTMLReader$MetaAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  17.       Object var3 = var2.getAttribute(Attribute.HTTPEQUIV);
  18.       if (var3 != null) {
  19.          String var5 = ((String)var3).toLowerCase();
  20.          if (var5.equals("content-style-type")) {
  21.             String var4 = (String)var2.getAttribute(Attribute.CONTENT);
  22.             HTMLReader.access$100(this.this$1).setDefaultStyleSheetType(var4);
  23.             this.this$1.isStyleCSS = "text/css".equals(HTMLReader.access$100(this.this$1).getDefaultStyleSheetType());
  24.          } else if (var5.equals("default-style")) {
  25.             this.this$1.defaultStyle = (String)var2.getAttribute(Attribute.CONTENT);
  26.          }
  27.       }
  28.  
  29.       super.start(var1, var2);
  30.    }
  31.  
  32.    boolean isEmpty(HTML.Tag var1) {
  33.       return true;
  34.    }
  35. }
  36.