home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- import javax.swing.ButtonGroup;
- import javax.swing.text.MutableAttributeSet;
- import javax.swing.text.html.HTML.Tag;
- import javax.swing.text.html.HTMLDocument.HTMLReader;
- import javax.swing.text.html.HTMLEditorKit.ParserCallback;
-
- public class HTMLDocument$HTMLReader$CharacterAction extends HTMLDocument.HTMLReader.TagAction {
- // $FF: synthetic field
- private final HTMLDocument.HTMLReader this$1;
-
- public HTMLDocument$HTMLReader$CharacterAction(HTMLDocument.HTMLReader var1) {
- super(var1);
- this.this$1 = var1;
- }
-
- public void start(HTML.Tag var1, MutableAttributeSet var2) {
- this.this$1.pushCharacterStyle();
- if (!this.this$1.foundInsertTag) {
- boolean var3 = HTMLReader.access$300(this.this$1, var1, var2, false);
- if (this.this$1.foundInsertTag && !this.this$1.inParagraph) {
- this.this$1.inParagraph = this.this$1.impliedP = true;
- }
-
- if (!var3) {
- return;
- }
- }
-
- if (var2.isDefined(ParserCallback.IMPLIED)) {
- var2.removeAttribute(ParserCallback.IMPLIED);
- }
-
- this.this$1.charAttr.addAttribute(var1, var2.copyAttributes());
- if (this.this$1.styleAttributes != null) {
- this.this$1.charAttr.addAttributes(this.this$1.styleAttributes);
- }
-
- if (var1 == Tag.FORM) {
- HTMLDocument.access$402(HTMLReader.access$100(this.this$1), new ButtonGroup());
- }
-
- }
-
- public void end(HTML.Tag var1) {
- this.this$1.popCharacterStyle();
- if (var1 == Tag.FORM) {
- HTMLDocument.access$402(HTMLReader.access$100(this.this$1), (ButtonGroup)null);
- }
-
- }
- }
-