diff options
| author | Michael Koch <konqueror@gmx.de> | 2004-04-20 10:51:42 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-04-20 10:51:42 +0000 |
| commit | 2c4d54e6d07a0b3aab74c0a5bafe55f49dabb86d (patch) | |
| tree | 97f2ca60a2bbac3c68603fd274d0726714c063ea /libjava/javax/swing/undo | |
| parent | 5589f3e5a5baa446f71948f5caec0811366ec32c (diff) | |
| download | gcc-2c4d54e6d07a0b3aab74c0a5bafe55f49dabb86d.zip gcc-2c4d54e6d07a0b3aab74c0a5bafe55f49dabb86d.tar.gz gcc-2c4d54e6d07a0b3aab74c0a5bafe55f49dabb86d.tar.bz2 | |
JLayeredPane.java, [...]: Fixed HTML tags in javadocs all over.
2004-04-20 Michael Koch <konqueror@gmx.de>
* javax/swing/JLayeredPane.java,
javax/swing/plaf/BorderUIResource.java,
javax/swing/plaf/ComponentUI.java,
javax/swing/undo/CompoundEdit.java,
javax/swing/undo/StateEdit.java:
Fixed HTML tags in javadocs all over.
From-SVN: r80893
Diffstat (limited to 'libjava/javax/swing/undo')
| -rw-r--r-- | libjava/javax/swing/undo/CompoundEdit.java | 19 | ||||
| -rw-r--r-- | libjava/javax/swing/undo/StateEdit.java | 60 |
2 files changed, 41 insertions, 38 deletions
diff --git a/libjava/javax/swing/undo/CompoundEdit.java b/libjava/javax/swing/undo/CompoundEdit.java index 565a327..730d5b2 100644 --- a/libjava/javax/swing/undo/CompoundEdit.java +++ b/libjava/javax/swing/undo/CompoundEdit.java @@ -45,17 +45,18 @@ import java.util.Vector; * <code>UndoableEdits</code>. * * <p>The use of a <code>CompoundEdit</code> is divided in two separate - * phases. - * - * <ol><li>In the first phase, the <code>CompoundEdit</code> is - * initialized. After a new instance of <code>CompoundEdit</code> has - * been created, {@link #addEdit(UndoableEdit)} is called for each - * element of the compound. To terminate the initialization phase, - * call {@link #end()}.</li> + * phases.</p> * + * <ol> + * <li>In the first phase, the <code>CompoundEdit</code> is + * initialized. After a new instance of <code>CompoundEdit</code> has + * been created, {@link #addEdit(UndoableEdit)} is called for each + * element of the compound. To terminate the initialization phase, + * call {@link #end()}.</li> * <li>In the second phase, the the <code>CompoundEdit</code> can be - * used, typically by invoking {@link #undo()} and {@link - * #redo()}.</li></ol> + * used, typically by invoking {@link #undo()} and + * {@link #redo()}.</li> + * </ol> * * @author Andrew Selkirk (aselkirk@sympatico.ca) * @author Sascha Brawer (brawer@dandelis.ch) diff --git a/libjava/javax/swing/undo/StateEdit.java b/libjava/javax/swing/undo/StateEdit.java index 00f1e2d..633807b 100644 --- a/libjava/javax/swing/undo/StateEdit.java +++ b/libjava/javax/swing/undo/StateEdit.java @@ -44,52 +44,54 @@ import java.util.Iterator; /** * A helper class, making it easy to support undo and redo. * - * <p>The following example shows how to use this class. + * <p>The following example shows how to use this class.</p> * - * <pre> Foo foo; // class Foo implements {@link StateEditable} - * StateEdit edit; + * <pre> + * Foo foo; // class Foo implements {@link StateEditable} + * StateEdit edit; * - * edit = new StateEdit(foo, "Name Change"); - * foo.setName("Jane Doe"); - * edit.end(); - * undoManager.addEdit(edit);</pre> + * edit = new StateEdit(foo, "Name Change"); + * foo.setName("Jane Doe"); + * edit.end(); + * undoManager.addEdit(edit); + * </pre> * * <p>If <code>Foo</code>’s implementation of {@link * StateEditable} considers the name as part of the editable state, * the user can now choose “Undo Name Change” or * “Redo Name Change” from the respective menu. No - * further undo support is needed from the application. + * further undo support is needed from the application.</p> * - * <p>The following explains what happens in the example. - * - * <p><ol><li>When a <code>StateEdit</code> is created, the associated - * {@link StateEditable} gets asked to store its state into a hash - * table, {@link #preState}.</li> + * <p>The following explains what happens in the example.</p> * + * <ol> + * <li>When a <code>StateEdit</code> is created, the associated + * {@link StateEditable} gets asked to store its state into a hash + * table, {@link #preState}.</li> * <li>The application will now perform some changes to the edited - * object. This typically happens by invoking methods on the edited - * object.</li> - * + * object. This typically happens by invoking methods on the edited + * object.</li> * <li>The editing phase is terminated by invoking the {@link #end()} - * method of the <code>StateEdit</code>. The <code>end()</code> method - * does two things. - * - * <ul><li>The edited object receives a second request for storing - * its state. This time, it will use a different hash table, {@link - * #postState}.</li> - * - * <li>To increase efficiency, the <code>StateEdit</code> now removes - * any entries from {@link #preState} and {@link #postState} that have - * the same key, and whose values are equal. Equality is determined - * by invoking the <code>equals</code> method inherited from - * {@link java.lang.Object}.</li></ul></li> + * method of the <code>StateEdit</code>. The <code>end()</code> method + * does two things. * + * <ul> + * <li>The edited object receives a second request for storing + * its state. This time, it will use a different hash table, {@link + * #postState}.</li> + * <li>To increase efficiency, the <code>StateEdit</code> now removes + * any entries from {@link #preState} and {@link #postState} that have + * the same key, and whose values are equal. Equality is determined + * by invoking the <code>equals</code> method inherited from + * {@link java.lang.Object}.</li> + * </ul></li> * <li>When the user later chooses to undo the <code>StateEdit</code>, * the edited object is asked to {@linkplain StateEditable#restoreState * restore its state} from the {@link #preState} table. Similarly, * when the user chooses to <i>redo</i> the <code>StateEdit</code>, * the edited object gets asked to restore its state from the {@link - * #postState}.</li></ol> + * #postState}.</li> + * </ol> * * @author Andrew Selkirk (aselkirk@sympatico.ca) * @author Sascha Brawer (brawer@dandelis.ch) |
