src/share/classes/javax/swing/text/DefaultEditorKit.java
Print this page
*** 68,77 ****
--- 68,78 ----
*
* </dl>
*
* @author Timothy Prinzing
*/
+ @SuppressWarnings("serial") // Same-version serialization only
public class DefaultEditorKit extends EditorKit {
/**
* default constructor for DefaultEditorKit
*/
*** 1028,1037 ****
--- 1029,1039 ----
* Deletes the character of content that precedes the
* current caret position.
* @see DefaultEditorKit#deletePrevCharAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class DeletePrevCharAction extends TextAction {
/**
* Creates this object with the appropriate identifier.
*/
*** 1086,1095 ****
--- 1088,1098 ----
* Deletes the character of content that follows the
* current caret position.
* @see DefaultEditorKit#deleteNextCharAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class DeleteNextCharAction extends TextAction {
/* Create this object with the appropriate identifier. */
DeleteNextCharAction() {
super(deleteNextCharAction);
*** 1137,1146 ****
--- 1140,1150 ----
/*
* Deletes the word that precedes/follows the beginning of the selection.
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class DeleteWordAction extends TextAction {
DeleteWordAction(String name) {
super(name);
assert (name == deletePrevWordAction)
|| (name == deleteNextWordAction);
*** 1211,1220 ****
--- 1215,1225 ----
/*
* Sets the editor into read-only mode.
* @see DefaultEditorKit#readOnlyAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class ReadOnlyAction extends TextAction {
/* Create this object with the appropriate identifier. */
ReadOnlyAction() {
super(readOnlyAction);
*** 1236,1245 ****
--- 1241,1251 ----
/*
* Sets the editor into writeable mode.
* @see DefaultEditorKit#writableAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class WritableAction extends TextAction {
/* Create this object with the appropriate identifier. */
WritableAction() {
super(writableAction);
*** 1410,1419 ****
--- 1416,1426 ----
*
* @see DefaultEditorKit#pageUpAction
* @see DefaultEditorKit#pageDownAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class VerticalPageAction extends TextAction {
/** Create this object with the appropriate identifier. */
public VerticalPageAction(String nm, int direction, boolean select) {
super(nm);
*** 1569,1578 ****
--- 1576,1586 ----
/**
* Pages one view to the left or right.
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class PageAction extends TextAction {
/** Create this object with the appropriate identifier. */
public PageAction(String nm, boolean left, boolean select) {
super(nm);
*** 1623,1632 ****
--- 1631,1641 ----
private boolean select;
private boolean left;
}
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class DumpModelAction extends TextAction {
DumpModelAction() {
super("dump-model");
}
*** 1645,1654 ****
--- 1654,1664 ----
/*
* Action to move the selection by way of the
* getNextVisualPositionFrom method. Constructor indicates direction
* to use.
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class NextVisualPositionAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1732,1741 ****
--- 1742,1752 ----
* Position the caret to the beginning of the word.
* @see DefaultEditorKit#beginWordAction
* @see DefaultEditorKit#selectBeginWordAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class BeginWordAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1772,1781 ****
--- 1783,1793 ----
* Position the caret to the end of the word.
* @see DefaultEditorKit#endWordAction
* @see DefaultEditorKit#selectEndWordAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class EndWordAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1812,1821 ****
--- 1824,1834 ----
* Position the caret to the beginning of the previous word.
* @see DefaultEditorKit#previousWordAction
* @see DefaultEditorKit#selectPreviousWordAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class PreviousWordAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1871,1880 ****
--- 1884,1894 ----
* Position the caret to the next of the word.
* @see DefaultEditorKit#nextWordAction
* @see DefaultEditorKit#selectNextWordAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class NextWordAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1936,1945 ****
--- 1950,1960 ----
* Position the caret to the beginning of the line.
* @see DefaultEditorKit#beginLineAction
* @see DefaultEditorKit#selectBeginLineAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class BeginLineAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 1976,1985 ****
--- 1991,2001 ----
* Position the caret to the end of the line.
* @see DefaultEditorKit#endLineAction
* @see DefaultEditorKit#selectEndLineAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class EndLineAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2016,2025 ****
--- 2032,2042 ----
* Position the caret to the beginning of the paragraph.
* @see DefaultEditorKit#beginParagraphAction
* @see DefaultEditorKit#selectBeginParagraphAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class BeginParagraphAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2053,2062 ****
--- 2070,2080 ----
* Position the caret to the end of the paragraph.
* @see DefaultEditorKit#endParagraphAction
* @see DefaultEditorKit#selectEndParagraphAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class EndParagraphAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2090,2099 ****
--- 2108,2118 ----
/*
* Move the caret to the beginning of the document.
* @see DefaultEditorKit#beginAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class BeginAction extends TextAction {
/* Create this object with the appropriate identifier. */
BeginAction(String nm, boolean select) {
super(nm);
*** 2118,2127 ****
--- 2137,2147 ----
/*
* Move the caret to the end of the document.
* @see DefaultEditorKit#endAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class EndAction extends TextAction {
/* Create this object with the appropriate identifier. */
EndAction(String nm, boolean select) {
super(nm);
*** 2148,2157 ****
--- 2168,2178 ----
/*
* Select the word around the caret
* @see DefaultEditorKit#endAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class SelectWordAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2177,2186 ****
--- 2198,2208 ----
/*
* Select the line around the caret
* @see DefaultEditorKit#endAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class SelectLineAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2206,2215 ****
--- 2228,2238 ----
/*
* Select the paragraph around the caret
* @see DefaultEditorKit#endAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class SelectParagraphAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2235,2244 ****
--- 2258,2268 ----
/*
* Select the entire document
* @see DefaultEditorKit#endAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class SelectAllAction extends TextAction {
/**
* Create this action with the appropriate identifier.
* @param nm the name of the action, Action.NAME.
*** 2264,2273 ****
--- 2288,2298 ----
/*
* Remove the selection, if any.
* @see DefaultEditorKit#unselectAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class UnselectAction extends TextAction {
/**
* Create this action with the appropriate identifier.
*/
*** 2288,2297 ****
--- 2313,2323 ----
/*
* Toggles the ComponentOrientation of the text component.
* @see DefaultEditorKit#toggleComponentOrientationAction
* @see DefaultEditorKit#getActions
*/
+ @SuppressWarnings("serial") // Superclass is not serializable across versions
static class ToggleComponentOrientationAction extends TextAction {
/**
* Create this action with the appropriate identifier.
*/