home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / text / html / HTMLDocument$HTMLReader$HiddenAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  1.5 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 end(HTML.Tag var1) {
  18.       if (!this.isEmpty(var1)) {
  19.          SimpleAttributeSet var2 = new SimpleAttributeSet();
  20.          var2.addAttribute(Attribute.ENDTAG, "true");
  21.          this.this$1.addSpecialElement(var1, var2);
  22.       }
  23.  
  24.    }
  25.  
  26.    private boolean isEmpty(HTML.Tag var1) {
  27.       return var1 != Tag.APPLET && var1 != Tag.HEAD && var1 != Tag.TITLE && var1 != Tag.SCRIPT && var1 != Tag.STYLE && var1 != Tag.AREA;
  28.    }
  29.  
  30.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  31.       this.this$1.addSpecialElement(var1, var2);
  32.    }
  33. }
  34.