classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: added API documentation to DefaultEditorKit


From: Roman Kennke
Subject: [cp-patches] FYI: added API documentation to DefaultEditorKit
Date: Wed, 08 Jun 2005 12:09:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

2005-06-08  Roman Kennke  <address@hidden>

   * javax/swing/text/DefaultEditorKit.java:
   Added some API documentation.

/Roman

Index: javax/swing/text/DefaultEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/DefaultEditorKit.java,v
retrieving revision 1.15
diff -u -r1.15 DefaultEditorKit.java
--- javax/swing/text/DefaultEditorKit.java      8 Jun 2005 10:00:04 -0000       
1.15
+++ javax/swing/text/DefaultEditorKit.java      8 Jun 2005 10:06:44 -0000
@@ -92,6 +92,16 @@
     }
   }

+  /**
+   * This action is executed as default action when a KEY_TYPED
+   * event is received and no keymap entry exists for that. The purpose
+   * of this action is to filter out a couple of characters. This includes
+   * the control characters and characters with the ALT-modifier.
+   *
+   * If an event does not get filtered, it is inserted into the document
+   * of the text component. If there is some text selected in the text 
component,
+   * this text will be replaced.
+   */
   public static class DefaultKeyTypedAction
     extends TextAction
   {
@@ -126,6 +136,11 @@
     }
   }

+  /**
+   * This action inserts a newline character into the document
+   * of the text component. This is typically triggered by hitting
+   * ENTER on the keyboard.
+   */
   public static class InsertBreakAction
     extends TextAction
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]