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

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.MutableAttributeSet;
  4. import javax.swing.text.SimpleAttributeSet;
  5. import javax.swing.text.html.HTML.Attribute;
  6. import javax.swing.text.html.HTML.Tag;
  7.  
  8. public class HTMLDocument$HTMLReader$HiddenAction extends HTMLDocument.HTMLReader.TagAction {
  9.    // $FF: synthetic field
  10.    private final HTMLDocument.HTMLReader this$1;
  11.  
  12.    public HTMLDocument$HTMLReader$HiddenAction(HTMLDocument.HTMLReader var1) {
  13.       super(var1);
  14.       this.this$1 = var1;
  15.    }
  16.  
  17.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  18.       this.this$1.addSpecialElement(var1, var2);
  19.    }
  20.  
  21.    public void end(HTML.Tag var1) {
  22.       if (!this.isEmpty(var1)) {
  23.          SimpleAttributeSet var2 = new SimpleAttributeSet();
  24.          var2.addAttribute(Attribute.ENDTAG, "true");
  25.          this.this$1.addSpecialElement(var1, var2);
  26.       }
  27.  
  28.    }
  29.  
  30.    boolean isEmpty(HTML.Tag var1) {
  31.       return var1 != Tag.APPLET && var1 != Tag.SCRIPT;
  32.    }
  33. }
  34.