< prev index next >

src/java.desktop/share/classes/javax/swing/undo/UndoManager.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


 114  * <a id="figure4"></a>
 115  * <table class="borderless">
 116  * <caption style="display:none">Figure 4</caption>
 117  * <tr><td>
 118  *     <img src="doc-files/UndoManager-4.gif" alt="">
 119  * <tr><td style="text-align:center">Figure 4
 120  * </table>
 121  * <p>
 122  * Once <code>end</code> has been invoked on an <code>UndoManager</code>
 123  * the superclass behavior is used for all <code>UndoableEdit</code>
 124  * methods.  Refer to <code>CompoundEdit</code> for more details on its
 125  * behavior.
 126  * <p>
 127  * Unlike the rest of Swing, this class is thread safe.
 128  * <p>
 129  * <strong>Warning:</strong>
 130  * Serialized objects of this class will not be compatible with
 131  * future Swing releases. The current serialization support is
 132  * appropriate for short term storage or RMI between applications running
 133  * the same version of Swing.  As of 1.4, support for long term storage
 134  * of all JavaBeans&trade;
 135  * has been added to the <code>java.beans</code> package.
 136  * Please see {@link java.beans.XMLEncoder}.
 137  *
 138  * @author Ray Ryan
 139  */
 140 @SuppressWarnings("serial") // Same-version serialization only
 141 public class UndoManager extends CompoundEdit implements UndoableEditListener {
 142     private enum Action {
 143         UNDO,
 144         REDO,
 145         ANY
 146     }
 147     int indexOfNextAdd;
 148     int limit;
 149 
 150     /**
 151      * Creates a new <code>UndoManager</code>.
 152      */
 153     public UndoManager() {
 154         super();




 114  * <a id="figure4"></a>
 115  * <table class="borderless">
 116  * <caption style="display:none">Figure 4</caption>
 117  * <tr><td>
 118  *     <img src="doc-files/UndoManager-4.gif" alt="">
 119  * <tr><td style="text-align:center">Figure 4
 120  * </table>
 121  * <p>
 122  * Once <code>end</code> has been invoked on an <code>UndoManager</code>
 123  * the superclass behavior is used for all <code>UndoableEdit</code>
 124  * methods.  Refer to <code>CompoundEdit</code> for more details on its
 125  * behavior.
 126  * <p>
 127  * Unlike the rest of Swing, this class is thread safe.
 128  * <p>
 129  * <strong>Warning:</strong>
 130  * Serialized objects of this class will not be compatible with
 131  * future Swing releases. The current serialization support is
 132  * appropriate for short term storage or RMI between applications running
 133  * the same version of Swing.  As of 1.4, support for long term storage
 134  * of all JavaBeans
 135  * has been added to the <code>java.beans</code> package.
 136  * Please see {@link java.beans.XMLEncoder}.
 137  *
 138  * @author Ray Ryan
 139  */
 140 @SuppressWarnings("serial") // Same-version serialization only
 141 public class UndoManager extends CompoundEdit implements UndoableEditListener {
 142     private enum Action {
 143         UNDO,
 144         REDO,
 145         ANY
 146     }
 147     int indexOfNextAdd;
 148     int limit;
 149 
 150     /**
 151      * Creates a new <code>UndoManager</code>.
 152      */
 153     public UndoManager() {
 154         super();


< prev index next >