< prev index next >

src/java.desktop/share/classes/javax/swing/text/StyleContext.java

Print this page

        

@@ -55,11 +55,11 @@
  * Serialized objects of this class will not be compatible with
  * future Swing releases. The current serialization support is
  * appropriate for short term storage or RMI between applications running
  * the same version of Swing.  As of 1.4, support for long term storage
  * of all JavaBeans&trade;
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
  * Please see {@link java.beans.XMLEncoder}.
  *
  * @author  Timothy Prinzing
  */
 @SuppressWarnings("serial") // Same-version serialization only

@@ -160,14 +160,14 @@
     public void removeChangeListener(ChangeListener l) {
         styles.removeChangeListener(l);
     }
 
     /**
-     * Returns an array of all the <code>ChangeListener</code>s added
+     * Returns an array of all the {@code ChangeListener}s added
      * to this StyleContext with addChangeListener().
      *
-     * @return all of the <code>ChangeListener</code>s added or an empty
+     * @return all of the {@code ChangeListener}s added or an empty
      *         array if no listeners have been added
      * @since 1.4
      */
     public ChangeListener[] getChangeListeners() {
         return ((NamedStyle)styles).getChangeListeners();

@@ -587,11 +587,11 @@
     /**
      * Writes a set of attributes to the given object stream
      * for the purpose of serialization.  This will take
      * special care to deal with static attribute keys that
      * have been registered wit the
-     * <code>registerStaticAttributeKey</code> method.
+     * {@code registerStaticAttributeKey} method.
      * Any attribute key not registered as a static key
      * will be serialized directly.  All values are expected
      * to be serializable.
      *
      * @param out the output stream

@@ -630,15 +630,15 @@
     }
 
     /**
      * Reads a set of attributes from the given object input
      * stream that have been previously written out with
-     * <code>writeAttributeSet</code>.  This will try to restore
+     * {@code writeAttributeSet}.  This will try to restore
      * keys that were static objects to the static objects in
      * the current virtual machine considering only those keys
      * that have been registered with the
-     * <code>registerStaticAttributeKey</code> method.
+     * {@code registerStaticAttributeKey} method.
      * The attributes retrieved from the stream will be placed
      * into the given mutable set.
      *
      * @param in the object stream to read the attribute data from.
      * @param a  the attribute set to place the attribute

@@ -673,11 +673,11 @@
      * Registers an object as a static object that is being
      * used as a key in attribute sets.  This allows the key
      * to be treated specially for serialization.
      * <p>
      * For operation under a 1.1 virtual machine, this
-     * uses the value returned by <code>toString</code>
+     * uses the value returned by {@code toString}
      * concatenated to the classname.  The value returned
      * by toString should not have the class reference
      * in it (ie it should be reimplemented from the
      * definition in Object) in order to be the same when
      * recomputed later.

@@ -694,11 +694,11 @@
         thawKeyMap.put(ioFmt, key);
     }
 
     /**
      * Returns the object previously registered with
-     * <code>registerStaticAttributeKey</code>.
+     * {@code registerStaticAttributeKey}.
      * @param key the object key
      * @return Returns the object previously registered with
      * {@code registerStaticAttributeKey}
      */
     public static Object getStaticAttribute(Object key) {

@@ -707,11 +707,11 @@
         }
         return thawKeyMap.get(key);
     }
 
     /**
-     * Returns the String that <code>key</code> will be registered with.
+     * Returns the String that {@code key} will be registered with.
      * @see #getStaticAttribute
      * @see #registerStaticAttributeKey
      * @param key the object key
      * @return the String that {@code key} will be registered with
      */

@@ -874,15 +874,15 @@
             return code;
         }
 
         /**
          * Compares this object to the specified object.
-         * The result is <code>true</code> if the object is an equivalent
+         * The result is {@code true} if the object is an equivalent
          * set of attributes.
          * @param     obj   the object to compare with.
-         * @return    <code>true</code> if the objects are equal;
-         *            <code>false</code> otherwise.
+         * @return    {@code true} if the objects are equal;
+         *            {@code false} otherwise.
          */
         public boolean equals(Object obj) {
             if (obj instanceof AttributeSet) {
                 AttributeSet attrs = (AttributeSet) obj;
                 return ((getAttributeCount() == attrs.getAttributeCount()) &&

@@ -1044,12 +1044,12 @@
         }
 
         /**
          * Tests if this enumeration contains more elements.
          *
-         * @return  <code>true</code> if this enumeration contains more elements;
-         *          <code>false</code> otherwise.
+         * @return  {@code true} if this enumeration contains more elements;
+         *          {@code false} otherwise.
          * @since   1.0
          */
         public boolean hasMoreElements() {
             return i < attr.length;
         }

@@ -1244,16 +1244,16 @@
             return fhash ^ style ^ size;
         }
 
         /**
          * Compares this object to the specified object.
-         * The result is <code>true</code> if and only if the argument is not
-         * <code>null</code> and is a <code>Font</code> object with the same
+         * The result is {@code true} if and only if the argument is not
+         * {@code null} and is a {@code Font} object with the same
          * name, style, and point size as this font.
          * @param     obj   the object to compare this font with.
-         * @return    <code>true</code> if the objects are equal;
-         *            <code>false</code> otherwise.
+         * @return    {@code true} if the objects are equal;
+         *            {@code false} otherwise.
          */
         public boolean equals(Object obj) {
             if (obj instanceof FontKey) {
                 FontKey font = (FontKey)obj;
                 return (size == font.size) && (style == font.style) && (family == font.family);

@@ -1275,11 +1275,11 @@
      * Serialized objects of this class will not be compatible with
      * future Swing releases. The current serialization support is
      * appropriate for short term storage or RMI between applications running
      * the same version of Swing.  As of 1.4, support for long term storage
      * of all JavaBeans&trade;
-     * has been added to the <code>java.beans</code> package.
+     * has been added to the {@code java.beans} package.
      * Please see {@link java.beans.XMLEncoder}.
      */
     @SuppressWarnings("serial") // Same-version serialization only
     public class NamedStyle implements Style, Serializable {
 

@@ -1368,14 +1368,14 @@
             listenerList.remove(ChangeListener.class, l);
         }
 
 
         /**
-         * Returns an array of all the <code>ChangeListener</code>s added
+         * Returns an array of all the {@code ChangeListener}s added
          * to this NamedStyle with addChangeListener().
          *
-         * @return all of the <code>ChangeListener</code>s added or an empty
+         * @return all of the {@code ChangeListener}s added or an empty
          *         array if no listeners have been added
          * @since 1.4
          */
         public ChangeListener[] getChangeListeners() {
             return listenerList.getListeners(ChangeListener.class);
< prev index next >