diff options
author | Roman Kennke <roman@kennke.org> | 2005-06-08 10:08:46 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-06-08 10:08:46 +0000 |
commit | 9c1c5dccc1a6352c2dbca0aa52e10e854b7503eb (patch) | |
tree | 3c457ac67ddee2dfd4effa7369e8d7598192ba05 /javax/swing/text/DefaultEditorKit.java | |
parent | eb9b4dda6a5a2d10d2d70d3b9c64a7a8739ac8c3 (diff) | |
download | classpath-9c1c5dccc1a6352c2dbca0aa52e10e854b7503eb.tar.gz |
2005-06-08 Roman Kennke <roman@kennke.org>
* javax/swing/text/DefaultEditorKit.java:
Added some API documentation.
Diffstat (limited to 'javax/swing/text/DefaultEditorKit.java')
-rw-r--r-- | javax/swing/text/DefaultEditorKit.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/javax/swing/text/DefaultEditorKit.java b/javax/swing/text/DefaultEditorKit.java index 77bbca9df..127b52c66 100644 --- a/javax/swing/text/DefaultEditorKit.java +++ b/javax/swing/text/DefaultEditorKit.java @@ -92,6 +92,16 @@ public class DefaultEditorKit extends EditorKit } } + /** + * 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 @@ public class DefaultEditorKit extends EditorKit } } + /** + * 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 { |