19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.undo;
27
28 import java.io.Serializable;
29 import javax.swing.UIManager;
30
31 /**
32 * An abstract implementation of <code>UndoableEdit</code>,
33 * implementing simple responses to all boolean methods in
34 * that interface.
35 *
36 * @author Ray Ryan
37 */
38 public class AbstractUndoableEdit implements UndoableEdit, Serializable {
39
40 /**
41 * String returned by <code>getUndoPresentationName</code>;
42 * as of Java 2 platform v1.3.1 this field is no longer used. This value
43 * is now localized and comes from the defaults table with key
44 * <code>AbstractUndoableEdit.undoText</code>.
45 *
46 * @see javax.swing.UIDefaults
47 */
48 protected static final String UndoName = "Undo";
49
50 /**
51 * String returned by <code>getRedoPresentationName</code>;
52 * as of Java 2 platform v1.3.1 this field is no longer used. This value
53 * is now localized and comes from the defaults table with key
54 * <code>AbstractUndoableEdit.redoText</code>.
55 *
56 * @see javax.swing.UIDefaults
57 */
58 protected static final String RedoName = "Redo";
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.undo;
27
28 import java.io.Serializable;
29 import javax.swing.UIManager;
30
31 /**
32 * An abstract implementation of <code>UndoableEdit</code>,
33 * implementing simple responses to all boolean methods in
34 * that interface.
35 *
36 * @author Ray Ryan
37 */
38 public class AbstractUndoableEdit implements UndoableEdit, Serializable {
39 private static final long serialVersionUID = 580150227676302096L;
40
41 /**
42 * String returned by <code>getUndoPresentationName</code>;
43 * as of Java 2 platform v1.3.1 this field is no longer used. This value
44 * is now localized and comes from the defaults table with key
45 * <code>AbstractUndoableEdit.undoText</code>.
46 *
47 * @see javax.swing.UIDefaults
48 */
49 protected static final String UndoName = "Undo";
50
51 /**
52 * String returned by <code>getRedoPresentationName</code>;
53 * as of Java 2 platform v1.3.1 this field is no longer used. This value
54 * is now localized and comes from the defaults table with key
55 * <code>AbstractUndoableEdit.redoText</code>.
56 *
57 * @see javax.swing.UIDefaults
58 */
59 protected static final String RedoName = "Redo";
|