OSDN Git Service

2004-11-30 Thomas Fitzsimmons <fitzsim@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / javax / swing / JTextPane.java
1 /* JTextPane.java --
2    Copyright (C) 2002, 2004 Free Software Foundation, Inc.
3
4 This file is part of GNU Classpath.
5
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.
10
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.
15
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.
20
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.
25
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. */
37
38
39 package javax.swing;
40
41 import java.awt.Component;
42 import java.io.IOException;
43 import java.io.ObjectOutputStream;
44
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;
52
53 /**
54  * JTextPane
55  * @author      Andrew Selkirk
56  * @version     1.0
57  */
58 public class JTextPane extends JEditorPane {
59
60         //-------------------------------------------------------------
61         // Variables --------------------------------------------------
62         //-------------------------------------------------------------
63
64         /**
65          * uiClassID
66          */
67         private static final String uiClassID = "TextPaneUI";
68
69
70         //-------------------------------------------------------------
71         // Initialization ---------------------------------------------
72         //-------------------------------------------------------------
73
74         /**
75          * Constructor JTextPane
76          */
77         public JTextPane() {
78                 // TODO
79         } // JTextPane()
80
81         /**
82          * Constructor JTextPane
83          * @param document TODO
84          */
85         public JTextPane(StyledDocument document) {
86                 // TODO
87         } // JTextPane()
88
89
90         //-------------------------------------------------------------
91         // Methods ----------------------------------------------------
92         //-------------------------------------------------------------
93
94         /**
95          * writeObject
96          * @param stream TODO
97          * @exception IOException TODO
98          */
99         private void writeObject(ObjectOutputStream stream) throws IOException {
100                 // TODO
101         } // writeObject()
102
103         /**
104          * getUIClassID
105          * @returns String
106          */
107         public String getUIClassID() {
108                 return uiClassID;
109         } // getUIClassID()
110
111         /**
112          * setDocument
113          * @param document TODO
114          */
115         public void setDocument(Document document) {
116                 // TODO
117         } // setDocument()
118
119         /**
120          * getStyledDocument
121          * @returns StyledDocument
122          */
123         public StyledDocument getStyledDocument() {
124                 return null; // TODO
125         } // getStyledDocument()
126
127         /**
128          * setStyledDocument
129          * @param document TODO
130          */
131         public void setStyledDocument(StyledDocument document) {
132                 // TODO
133         } // setStyledDocument()
134
135         /**
136          * replaceSelection
137          * @param content TODO
138          */
139         public void replaceSelection(String content) {
140                 // TODO
141         } // replaceSelection()
142
143         /**
144          * insertComponent
145          * @param component TODO
146          */
147         public void insertComponent(Component component) {
148                 // TODO
149         } // insertComponent()
150
151         /**
152          * insertIcon
153          * @param icon TODO
154          */
155         public void insertIcon(Icon icon) {
156                 // TODO
157         } // insertIcon()
158
159         /**
160          * addStyle
161          * @param nm TODO
162          * @param parent TODO
163          * @returns Style
164          */
165         public Style addStyle(String nm, Style parent) {
166                 return null; // TODO
167         } // addStyle()
168
169         /**
170          * removeStyle
171          * @param nm TODO
172          */
173         public void removeStyle(String nm) {
174                 // TODO
175         } // removeStyle()
176
177         /**
178          * getStyle
179          * @param nm TODO
180          * @returns Style
181          */
182         public Style getStyle(String nm) {
183                 return null; // TODO
184         } // getStyle()
185
186         /**
187          * getLogicalStyle
188          * @returns Style
189          */
190         public Style getLogicalStyle() {
191                 return null; // TODO
192         } // getLogicalStyle()
193
194         /**
195          * setLogicalStyle
196          * @param style TODO
197          */
198         public void setLogicalStyle(Style style) {
199                 // TODO
200         } // setLogicalStyle()
201
202         /**
203          * getCharacterAttributes
204          * @returns AttributeSet
205          */
206         public AttributeSet getCharacterAttributes() {
207                 return null; // TODO
208         } // getCharacterAttributes()
209
210         /**
211          * setCharacterAttributes
212          * @param attribute TODO
213          * @param replace TODO
214          */
215         public void setCharacterAttributes(AttributeSet attribute,
216                         boolean replace) {
217                 // TODO
218         } // setCharacterAttributes()
219
220         /**
221          * getParagraphAttributes
222          * @returns AttributeSet
223          */
224         public AttributeSet getParagraphAttributes() {
225                 return null; // TODO
226         } // getParagraphAttributes()
227
228         /**
229          * setParagraphAttributes
230          * @param attribute TODO
231          * @param replace TODO
232          */
233         public void setParagraphAttributes(AttributeSet attribute,
234                         boolean replace) {
235                 // TODO
236         } // setParagraphAttributes()
237
238         /**
239          * getInputAttributes
240          * @returns MutableAttributeSet
241          */
242         public MutableAttributeSet getInputAttributes() {
243                 return null; // TODO
244         } // getInputAttributes()
245
246         /**
247          * getStyledEditorKit
248          * @returns StyledEditorKit
249          */
250         protected final StyledEditorKit getStyledEditorKit() {
251                 return null; // TODO
252         } // getStyledEditorKit()
253
254         /**
255          * createDefaultEditorKit
256          * @returns EditorKit
257          */
258         protected EditorKit createDefaultEditorKit() {
259                 return null; // TODO
260         } // createDefaultEditorKit()
261
262         /**
263          * setEditorKit
264          * @param editor TODO
265          */
266         public final void setEditorKit(EditorKit editor) {
267                 // TODO
268         } // setEditorKit()
269
270         /**
271          * paramString
272          * @returns String
273          */
274         protected String paramString() {
275                 return null; // TODO
276         } // paramString()
277
278
279 } // JTextPane