jdk/src/share/classes/javax/swing/plaf/basic/BasicHTML.java
changeset 23697 e556a715949f
parent 5506 202f599c92aa
child 25761 c408b10ef757
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   274      * head, title, unknown tags, etc.
   274      * head, title, unknown tags, etc.
   275      * <li>It installs a different set of css settings from the default
   275      * <li>It installs a different set of css settings from the default
   276      * provided by HTMLEditorKit.
   276      * provided by HTMLEditorKit.
   277      * </ul>
   277      * </ul>
   278      */
   278      */
       
   279     @SuppressWarnings("serial") // JDK-implementation class
   279     static class BasicEditorKit extends HTMLEditorKit {
   280     static class BasicEditorKit extends HTMLEditorKit {
   280         /** Shared base style for all documents created by us use. */
   281         /** Shared base style for all documents created by us use. */
   281         private static StyleSheet defaultStyles;
   282         private static StyleSheet defaultStyles;
   282 
   283 
   283         /**
   284         /**
   343     /**
   344     /**
   344      * The subclass of HTMLDocument that is used as the model. getForeground
   345      * The subclass of HTMLDocument that is used as the model. getForeground
   345      * is overridden to return the foreground property from the Component this
   346      * is overridden to return the foreground property from the Component this
   346      * was created for.
   347      * was created for.
   347      */
   348      */
       
   349     @SuppressWarnings("serial") // Superclass is not serializable across versions
   348     static class BasicDocument extends HTMLDocument {
   350     static class BasicDocument extends HTMLDocument {
   349         /** The host, that is where we are rendering. */
   351         /** The host, that is where we are rendering. */
   350         // private JComponent host;
   352         // private JComponent host;
   351 
   353 
   352         BasicDocument(StyleSheet s, Font defaultFont, Color foreground) {
   354         BasicDocument(StyleSheet s, Font defaultFont, Color foreground) {