diff options
author | cl <none@none> | 2013-10-09 14:32:15 -0700 |
---|---|---|
committer | cl <none@none> | 2013-10-09 14:32:15 -0700 |
commit | 7112cd9ced91dd626bf85fa99ae458aac06191a4 (patch) | |
tree | d87e91efbbdefb8a8e971cf642c5247cbbc802d1 /src/share/classes/javax/swing/text | |
parent | e10e75c5d0155f62d029a1899ee2d2e892be6770 (diff) |
8026021: more fix of javadoc errors and warnings reported by doclint, see the description
Reviewed-by: anthony, serb
Diffstat (limited to 'src/share/classes/javax/swing/text')
3 files changed, 22 insertions, 23 deletions
diff --git a/src/share/classes/javax/swing/text/JTextComponent.java b/src/share/classes/javax/swing/text/JTextComponent.java index 52052b7a8..aafc57eb3 100644 --- a/src/share/classes/javax/swing/text/JTextComponent.java +++ b/src/share/classes/javax/swing/text/JTextComponent.java @@ -160,9 +160,9 @@ import sun.swing.SwingAccessor; * * <table border=1 summary="Stages of keyboard and input method event handling"> * <tr> - * <th id="stage"><p align="left">Stage</p></th> - * <th id="ke"><p align="left">KeyEvent</p></th> - * <th id="ime"><p align="left">InputMethodEvent</p></th></tr> + * <th id="stage"><p style="text-align:left">Stage</p></th> + * <th id="ke"><p style="text-align:left">KeyEvent</p></th> + * <th id="ime"><p style="text-align:left">InputMethodEvent</p></th></tr> * <tr><td headers="stage">1. </td> * <td headers="ke">input methods </td> * <td headers="ime">(generated here)</td></tr> @@ -214,7 +214,7 @@ import sun.swing.SwingAccessor; * The text document model may be shared by other views which act as observers * of the model (e.g. a document may be shared by multiple components). * - * <p align=center><img src="doc-files/editor.gif" alt="Diagram showing interaction between Controller, Document, events, and ViewFactory" + * <p style="text-align:center"><img src="doc-files/editor.gif" alt="Diagram showing interaction between Controller, Document, events, and ViewFactory" * HEIGHT=358 WIDTH=587></p> * * <p> @@ -1399,8 +1399,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Fetches a portion of the text represented by the * component. Returns an empty string if length is 0. * - * @param offs the offset >= 0 - * @param len the length >= 0 + * @param offs the offset ≥ 0 + * @param len the length ≥ 0 * @return the text * @exception BadLocationException if the offset or length are invalid */ @@ -1416,7 +1416,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * be computed until the component has been sized). The * component does not have to be visible or painted. * - * @param pos the position >= 0 + * @param pos the position ≥ 0 * @return the coordinates as a rectangle, with (r.x, r.y) as the location * in the coordinate system, or null if the component does * not yet have a positive size. @@ -1437,7 +1437,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * component does not have to be visible or painted. * * @param pt the location in the view to translate - * @return the offset >= 0 from the start of the document, + * @return the offset ≥ 0 from the start of the document, * or -1 if the component does not yet have a positive * size. * @see TextUI#viewToModel @@ -1688,7 +1688,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * text component. * * @return the position of the text insertion caret for the - * text component >= 0 + * text component ≥ 0 */ @Transient public int getCaretPosition() { @@ -1814,7 +1814,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Returns the selected text's start position. Return 0 for an * empty document, or the value of dot if no selection. * - * @return the start position >= 0 + * @return the start position ≥ 0 */ @Transient public int getSelectionStart() { @@ -1832,7 +1832,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * This is implemented to forward to the <code>Caret</code> * implementation which is where the actual selection is maintained. * - * @param selectionStart the start position of the text >= 0 + * @param selectionStart the start position of the text ≥ 0 * @beaninfo * description: starting location of the selection. */ @@ -1847,7 +1847,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Returns the selected text's end position. Return 0 if the document * is empty, or the value of dot if there is no selection. * - * @return the end position >= 0 + * @return the end position ≥ 0 */ @Transient public int getSelectionEnd() { @@ -1865,7 +1865,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * This is implemented to forward to the <code>Caret</code> * implementation which is where the actual selection is maintained. * - * @param selectionEnd the end position of the text >= 0 + * @param selectionEnd the end position of the text ≥ 0 * @beaninfo * description: ending location of the selection. */ @@ -2785,7 +2785,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * if the JTextComponent is contained in a JScrollPane in which * case the resulting rectangle should be composed with the parent * coordinates. A good algorithm to use is: - * <nf> + * <pre> * Accessible a: * AccessibleText at = a.getAccessibleText(); * AccessibleComponent ac = a.getAccessibleComponent(); @@ -2793,14 +2793,14 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Point p = ac.getLocation(); * r.x += p.x; * r.y += p.y; - * </nf> + * </pre> * * Note: the JTextComponent must have a valid size (e.g. have * been added to a parent container whose ancestor container * is a valid top-level window) for this method to be able * to return a meaningful (non-null) value. * - * @param i the index into the String >= 0 + * @param i the index into the String ≥ 0 * @return the screen coordinates of the character's bounding box */ public Rectangle getCharacterBounds(int i) { @@ -2844,7 +2844,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A /** * Returns the number of characters (valid indices) * - * @return the number of characters >= 0 + * @return the number of characters ≥ 0 */ public int getCharCount() { return model.getLength(); @@ -2895,7 +2895,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Return 0 if the text is empty, or the caret position * if no selection. * - * @return the index into the text of the start of the selection >= 0 + * @return the index into the text of the start of the selection ≥ 0 */ public int getSelectionStart() { return JTextComponent.this.getSelectionStart(); @@ -2908,7 +2908,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A * Return 0 if the text is empty, or the caret position * if no selection. * - * @return the index into teh text of the end of the selection >= 0 + * @return the index into teh text of the end of the selection ≥ 0 */ public int getSelectionEnd() { return JTextComponent.this.getSelectionEnd(); diff --git a/src/share/classes/javax/swing/text/StyleConstants.java b/src/share/classes/javax/swing/text/StyleConstants.java index 0bb73f25d..894b9fdc0 100644 --- a/src/share/classes/javax/swing/text/StyleConstants.java +++ b/src/share/classes/javax/swing/text/StyleConstants.java @@ -39,7 +39,7 @@ import javax.swing.Icon; * All sizes are specified in points (such as found in postscript), a * device independent measure. * </p> - * <p align=center><img src="doc-files/paragraph.gif" + * <p style="text-align:center"><img src="doc-files/paragraph.gif" * alt="Diagram shows SpaceAbove, FirstLineIndent, LeftIndent, RightIndent, * and SpaceBelow a paragraph."></p> * <p> diff --git a/src/share/classes/javax/swing/text/html/HTMLDocument.java b/src/share/classes/javax/swing/text/html/HTMLDocument.java index abbee8037..5a26b1328 100644 --- a/src/share/classes/javax/swing/text/html/HTMLDocument.java +++ b/src/share/classes/javax/swing/text/html/HTMLDocument.java @@ -184,7 +184,6 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR; * of various methods described above.</p> * * <table border=1 cellspacing=0> - * <caption></caption> * <tr> * <th>Example</th> * <th><code>insertAfterStart</code></th> @@ -262,8 +261,8 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR; * 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<sup><font - * size="-2">TM</font></sup> has been added to the + * support for long term storage of all JavaBeans™ + * has been added to the * <code>java.beans</code> package. Please see {@link * java.beans.XMLEncoder}.</p> * |