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

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.ButtonGroup;
  4. import javax.swing.text.MutableAttributeSet;
  5. import javax.swing.text.html.HTML.Tag;
  6. import javax.swing.text.html.HTMLDocument.HTMLReader;
  7. import javax.swing.text.html.HTMLEditorKit.ParserCallback;
  8.  
  9. public class HTMLDocument$HTMLReader$CharacterAction extends HTMLDocument.HTMLReader.TagAction {
  10.    // $FF: synthetic field
  11.    private final HTMLDocument.HTMLReader this$1;
  12.  
  13.    public HTMLDocument$HTMLReader$CharacterAction(HTMLDocument.HTMLReader var1) {
  14.       super(var1);
  15.       this.this$1 = var1;
  16.    }
  17.  
  18.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  19.       this.this$1.pushCharacterStyle();
  20.       if (!this.this$1.foundInsertTag) {
  21.          boolean var3 = HTMLReader.access$300(this.this$1, var1, var2, false);
  22.          if (this.this$1.foundInsertTag && !this.this$1.inParagraph) {
  23.             this.this$1.inParagraph = this.this$1.impliedP = true;
  24.          }
  25.  
  26.          if (!var3) {
  27.             return;
  28.          }
  29.       }
  30.  
  31.       if (var2.isDefined(ParserCallback.IMPLIED)) {
  32.          var2.removeAttribute(ParserCallback.IMPLIED);
  33.       }
  34.  
  35.       this.this$1.charAttr.addAttribute(var1, var2.copyAttributes());
  36.       if (this.this$1.styleAttributes != null) {
  37.          this.this$1.charAttr.addAttributes(this.this$1.styleAttributes);
  38.       }
  39.  
  40.       if (var1 == Tag.FORM) {
  41.          HTMLDocument.access$402(HTMLReader.access$100(this.this$1), new ButtonGroup());
  42.       }
  43.  
  44.    }
  45.  
  46.    public void end(HTML.Tag var1) {
  47.       this.this$1.popCharacterStyle();
  48.       if (var1 == Tag.FORM) {
  49.          HTMLDocument.access$402(HTMLReader.access$100(this.this$1), (ButtonGroup)null);
  50.       }
  51.  
  52.    }
  53. }
  54.