92 |
} |
} |
93 |
} |
} |
94 |
|
|
95 |
|
/** |
96 |
|
* This action is executed as default action when a KEY_TYPED |
97 |
|
* event is received and no keymap entry exists for that. The purpose |
98 |
|
* of this action is to filter out a couple of characters. This includes |
99 |
|
* the control characters and characters with the ALT-modifier. |
100 |
|
* |
101 |
|
* If an event does not get filtered, it is inserted into the document |
102 |
|
* of the text component. If there is some text selected in the text component, |
103 |
|
* this text will be replaced. |
104 |
|
*/ |
105 |
public static class DefaultKeyTypedAction |
public static class DefaultKeyTypedAction |
106 |
extends TextAction |
extends TextAction |
107 |
{ |
{ |
136 |
} |
} |
137 |
} |
} |
138 |
|
|
139 |
|
/** |
140 |
|
* This action inserts a newline character into the document |
141 |
|
* of the text component. This is typically triggered by hitting |
142 |
|
* ENTER on the keyboard. |
143 |
|
*/ |
144 |
public static class InsertBreakAction |
public static class InsertBreakAction |
145 |
extends TextAction |
extends TextAction |
146 |
{ |
{ |