2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / text / DefaultEditorKit.java
blobc7daa71ac2031ee46b3455cf622d7862c44dbcd5
1 /* DefaultEditorKit.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package javax.swing.text;
40 import javax.swing.*;
41 import java.io.*;
43 public class DefaultEditorKit extends EditorKit
45 public static final String backwardAction = "caret-backward";
46 public static final String beepAction = "beep";
47 public static final String beginAction = "caret-begin";
48 public static final String beginLineAction = "caret-begin-line";
49 public static final String beginParagraphAction = "caret-begin-paragraph";
50 public static final String beginWordAction = "caret-begin-word";
51 public static final String copyAction = "copy-to-clipboard";
52 public static final String cutAction = "cut-to-clipboard";
53 public static final String defaultKeyTypedAction = "default-typed";
54 public static final String deleteNextCharAction = "delete-next";
55 public static final String deletePrevCharAction = "delete-previous";
56 public static final String downAction = "caret-down";
57 public static final String endAction = "caret-end";
58 public static final String endLineAction = "caret-end-line";
59 public static final String endOfLineStringProperty = "__EndOfLine__";
60 public static final String endParagraphAction = "caret-end-paragraph";
61 public static final String endWordAction = "caret-end-word";
62 public static final String forwardAction = "caret-forward";
63 public static final String insertBreakAction = "insert-break";
64 public static final String insertContentAction = "insert-content";
65 public static final String insertTabAction = "insert-tab";
66 public static final String nextWordAction = "caret-next-word";
67 public static final String pageDownAction = "page-down";
68 public static final String pageUpAction = "page-up";
69 public static final String pasteAction = "paste-from-clipboard";
70 public static final String previousWordAction = "caret-previous-word";
71 public static final String readOnlyAction = "set-read-only";
72 public static final String selectAllAction = "select-all";
73 public static final String selectionBackwardAction = "selection-backward";
74 public static final String selectionBeginAction = "selection-begin";
75 public static final String selectionBeginLineAction = "selection-begin-line";
76 public static final String selectionBeginParagraphAction = "selection-begin-paragraph";
77 public static final String selectionBeginWordAction = "selection-begin-word";
78 public static final String selectionDownAction = "selection-down";
79 public static final String selectionEndAction = "selection-end";
80 public static final String selectionEndLineAction = "selection-end-line";
81 public static final String selectionEndParagraphAction = "selection-end-paragraph";
82 public static final String selectionEndWordAction = "selection-end-word";
83 public static final String selectionForwardAction = "selection-forward";
84 public static final String selectionNextWordAction = "selection-next-word";
85 public static final String selectionPreviousWordAction = "selection-previous-word";
86 public static final String selectionUpAction = "selection-up";
87 public static final String selectLineAction = "select-line";
88 public static final String selectParagraphAction = "select-paragraph";
89 public static final String selectWordAction = "select-word";
90 public static final String upAction = "caret-up";
91 public static final String writableAction = "set-writable";
93 void deinstall(JEditorPane c)
95 // Called when the kit is being removed from the JEditorPane.
97 void install(JEditorPane c)
101 Caret createCaret()
103 return null;
105 Document createDefaultDocument()
107 return new PlainDocument();
110 Action[] getActions()
112 return null;
115 String getContentType()
117 return "text/plain";
120 ViewFactory getViewFactory()
122 return null;
124 void read(InputStream in, Document doc, int pos)
127 void read(Reader in, Document doc, int pos)
130 void write(OutputStream out, Document doc, int pos, int len)
133 void write(Writer out, Document doc, int pos, int len)