jdk/src/share/classes/javax/swing/text/DefaultEditorKit.java
changeset 22574 7f8ce0c8c20a
parent 22260 c9185e010e03
child 23307 5e534f20d09a
equal deleted inserted replaced
22573:8f0344f13b7f 22574:7f8ce0c8c20a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   847      * @see DefaultEditorKit#defaultKeyTypedAction
   847      * @see DefaultEditorKit#defaultKeyTypedAction
   848      * @see DefaultEditorKit#getActions
   848      * @see DefaultEditorKit#getActions
   849      * @see Keymap#setDefaultAction
   849      * @see Keymap#setDefaultAction
   850      * @see Keymap#getDefaultAction
   850      * @see Keymap#getDefaultAction
   851      */
   851      */
       
   852     @SuppressWarnings("serial") // Same-version serialization only
   852     public static class DefaultKeyTypedAction extends TextAction {
   853     public static class DefaultKeyTypedAction extends TextAction {
   853 
   854 
   854         /**
   855         /**
   855          * Creates this object with the appropriate identifier.
   856          * Creates this object with the appropriate identifier.
   856          */
   857          */
   904      * Please see {@link java.beans.XMLEncoder}.
   905      * Please see {@link java.beans.XMLEncoder}.
   905      *
   906      *
   906      * @see DefaultEditorKit#insertContentAction
   907      * @see DefaultEditorKit#insertContentAction
   907      * @see DefaultEditorKit#getActions
   908      * @see DefaultEditorKit#getActions
   908      */
   909      */
       
   910     @SuppressWarnings("serial") // Same-version serialization only
   909     public static class InsertContentAction extends TextAction {
   911     public static class InsertContentAction extends TextAction {
   910 
   912 
   911         /**
   913         /**
   912          * Creates this object with the appropriate identifier.
   914          * Creates this object with the appropriate identifier.
   913          */
   915          */
   952      * Please see {@link java.beans.XMLEncoder}.
   954      * Please see {@link java.beans.XMLEncoder}.
   953      *
   955      *
   954      * @see DefaultEditorKit#insertBreakAction
   956      * @see DefaultEditorKit#insertBreakAction
   955      * @see DefaultEditorKit#getActions
   957      * @see DefaultEditorKit#getActions
   956      */
   958      */
       
   959     @SuppressWarnings("serial") // Same-version serialization only
   957     public static class InsertBreakAction extends TextAction {
   960     public static class InsertBreakAction extends TextAction {
   958 
   961 
   959         /**
   962         /**
   960          * Creates this object with the appropriate identifier.
   963          * Creates this object with the appropriate identifier.
   961          */
   964          */
   994      * Please see {@link java.beans.XMLEncoder}.
   997      * Please see {@link java.beans.XMLEncoder}.
   995      *
   998      *
   996      * @see DefaultEditorKit#insertTabAction
   999      * @see DefaultEditorKit#insertTabAction
   997      * @see DefaultEditorKit#getActions
  1000      * @see DefaultEditorKit#getActions
   998      */
  1001      */
       
  1002     @SuppressWarnings("serial") // Same-version serialization only
   999     public static class InsertTabAction extends TextAction {
  1003     public static class InsertTabAction extends TextAction {
  1000 
  1004 
  1001         /**
  1005         /**
  1002          * Creates this object with the appropriate identifier.
  1006          * Creates this object with the appropriate identifier.
  1003          */
  1007          */
  1270      * Please see {@link java.beans.XMLEncoder}.
  1274      * Please see {@link java.beans.XMLEncoder}.
  1271      *
  1275      *
  1272      * @see DefaultEditorKit#cutAction
  1276      * @see DefaultEditorKit#cutAction
  1273      * @see DefaultEditorKit#getActions
  1277      * @see DefaultEditorKit#getActions
  1274      */
  1278      */
       
  1279     @SuppressWarnings("serial") // Same-version serialization only
  1275     public static class CutAction extends TextAction {
  1280     public static class CutAction extends TextAction {
  1276 
  1281 
  1277         /** Create this object with the appropriate identifier. */
  1282         /** Create this object with the appropriate identifier. */
  1278         public CutAction() {
  1283         public CutAction() {
  1279             super(cutAction);
  1284             super(cutAction);
  1306      * Please see {@link java.beans.XMLEncoder}.
  1311      * Please see {@link java.beans.XMLEncoder}.
  1307      *
  1312      *
  1308      * @see DefaultEditorKit#copyAction
  1313      * @see DefaultEditorKit#copyAction
  1309      * @see DefaultEditorKit#getActions
  1314      * @see DefaultEditorKit#getActions
  1310      */
  1315      */
       
  1316     @SuppressWarnings("serial") // Same-version serialization only
  1311     public static class CopyAction extends TextAction {
  1317     public static class CopyAction extends TextAction {
  1312 
  1318 
  1313         /** Create this object with the appropriate identifier. */
  1319         /** Create this object with the appropriate identifier. */
  1314         public CopyAction() {
  1320         public CopyAction() {
  1315             super(copyAction);
  1321             super(copyAction);
  1343      * Please see {@link java.beans.XMLEncoder}.
  1349      * Please see {@link java.beans.XMLEncoder}.
  1344      *
  1350      *
  1345      * @see DefaultEditorKit#pasteAction
  1351      * @see DefaultEditorKit#pasteAction
  1346      * @see DefaultEditorKit#getActions
  1352      * @see DefaultEditorKit#getActions
  1347      */
  1353      */
       
  1354     @SuppressWarnings("serial") // Same-version serialization only
  1348     public static class PasteAction extends TextAction {
  1355     public static class PasteAction extends TextAction {
  1349 
  1356 
  1350         /** Create this object with the appropriate identifier. */
  1357         /** Create this object with the appropriate identifier. */
  1351         public PasteAction() {
  1358         public PasteAction() {
  1352             super(pasteAction);
  1359             super(pasteAction);
  1378      * Please see {@link java.beans.XMLEncoder}.
  1385      * Please see {@link java.beans.XMLEncoder}.
  1379      *
  1386      *
  1380      * @see DefaultEditorKit#beepAction
  1387      * @see DefaultEditorKit#beepAction
  1381      * @see DefaultEditorKit#getActions
  1388      * @see DefaultEditorKit#getActions
  1382      */
  1389      */
       
  1390     @SuppressWarnings("serial") // Same-version serialization only
  1383     public static class BeepAction extends TextAction {
  1391     public static class BeepAction extends TextAction {
  1384 
  1392 
  1385         /** Create this object with the appropriate identifier. */
  1393         /** Create this object with the appropriate identifier. */
  1386         public BeepAction() {
  1394         public BeepAction() {
  1387             super(beepAction);
  1395             super(beepAction);