Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / libjava / javax / swing / JTextPane.java
blob95d2d50015ae27dd09b98c18eb44ee42b2e8a48b
1 /* JTextPane.java --
2 Copyright (C) 2002, 2004 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. */
39 package javax.swing;
41 import java.awt.Component;
42 import java.io.IOException;
43 import java.io.ObjectOutputStream;
45 import javax.swing.text.AttributeSet;
46 import javax.swing.text.Document;
47 import javax.swing.text.EditorKit;
48 import javax.swing.text.MutableAttributeSet;
49 import javax.swing.text.Style;
50 import javax.swing.text.StyledDocument;
51 import javax.swing.text.StyledEditorKit;
53 /**
54 * JTextPane
55 * @author Andrew Selkirk
56 * @version 1.0
58 public class JTextPane extends JEditorPane {
60 //-------------------------------------------------------------
61 // Variables --------------------------------------------------
62 //-------------------------------------------------------------
64 /**
65 * uiClassID
67 private static final String uiClassID = "TextPaneUI";
70 //-------------------------------------------------------------
71 // Initialization ---------------------------------------------
72 //-------------------------------------------------------------
74 /**
75 * Constructor JTextPane
77 public JTextPane() {
78 // TODO
79 } // JTextPane()
81 /**
82 * Constructor JTextPane
83 * @param document TODO
85 public JTextPane(StyledDocument document) {
86 // TODO
87 } // JTextPane()
90 //-------------------------------------------------------------
91 // Methods ----------------------------------------------------
92 //-------------------------------------------------------------
94 /**
95 * writeObject
96 * @param stream TODO
97 * @exception IOException TODO
99 private void writeObject(ObjectOutputStream stream) throws IOException {
100 // TODO
101 } // writeObject()
104 * getUIClassID
105 * @returns String
107 public String getUIClassID() {
108 return uiClassID;
109 } // getUIClassID()
112 * setDocument
113 * @param document TODO
115 public void setDocument(Document document) {
116 // TODO
117 } // setDocument()
120 * getStyledDocument
121 * @returns StyledDocument
123 public StyledDocument getStyledDocument() {
124 return null; // TODO
125 } // getStyledDocument()
128 * setStyledDocument
129 * @param document TODO
131 public void setStyledDocument(StyledDocument document) {
132 // TODO
133 } // setStyledDocument()
136 * replaceSelection
137 * @param content TODO
139 public void replaceSelection(String content) {
140 // TODO
141 } // replaceSelection()
144 * insertComponent
145 * @param component TODO
147 public void insertComponent(Component component) {
148 // TODO
149 } // insertComponent()
152 * insertIcon
153 * @param icon TODO
155 public void insertIcon(Icon icon) {
156 // TODO
157 } // insertIcon()
160 * addStyle
161 * @param nm TODO
162 * @param parent TODO
163 * @returns Style
165 public Style addStyle(String nm, Style parent) {
166 return null; // TODO
167 } // addStyle()
170 * removeStyle
171 * @param nm TODO
173 public void removeStyle(String nm) {
174 // TODO
175 } // removeStyle()
178 * getStyle
179 * @param nm TODO
180 * @returns Style
182 public Style getStyle(String nm) {
183 return null; // TODO
184 } // getStyle()
187 * getLogicalStyle
188 * @returns Style
190 public Style getLogicalStyle() {
191 return null; // TODO
192 } // getLogicalStyle()
195 * setLogicalStyle
196 * @param style TODO
198 public void setLogicalStyle(Style style) {
199 // TODO
200 } // setLogicalStyle()
203 * getCharacterAttributes
204 * @returns AttributeSet
206 public AttributeSet getCharacterAttributes() {
207 return null; // TODO
208 } // getCharacterAttributes()
211 * setCharacterAttributes
212 * @param attribute TODO
213 * @param replace TODO
215 public void setCharacterAttributes(AttributeSet attribute,
216 boolean replace) {
217 // TODO
218 } // setCharacterAttributes()
221 * getParagraphAttributes
222 * @returns AttributeSet
224 public AttributeSet getParagraphAttributes() {
225 return null; // TODO
226 } // getParagraphAttributes()
229 * setParagraphAttributes
230 * @param attribute TODO
231 * @param replace TODO
233 public void setParagraphAttributes(AttributeSet attribute,
234 boolean replace) {
235 // TODO
236 } // setParagraphAttributes()
239 * getInputAttributes
240 * @returns MutableAttributeSet
242 public MutableAttributeSet getInputAttributes() {
243 return null; // TODO
244 } // getInputAttributes()
247 * getStyledEditorKit
248 * @returns StyledEditorKit
250 protected final StyledEditorKit getStyledEditorKit() {
251 return null; // TODO
252 } // getStyledEditorKit()
255 * createDefaultEditorKit
256 * @returns EditorKit
258 protected EditorKit createDefaultEditorKit() {
259 return null; // TODO
260 } // createDefaultEditorKit()
263 * setEditorKit
264 * @param editor TODO
266 public final void setEditorKit(EditorKit editor) {
267 // TODO
268 } // setEditorKit()
271 * paramString
272 * @returns String
274 protected String paramString() {
275 return null; // TODO
276 } // paramString()
279 } // JTextPane