KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > text > PlainDocument


1 /*
2    SwingWT
3    Copyright(c)2003-2004 Robin Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: PlainDocument.java,v $
11    Revision 1.2 2004/05/04 09:31:43 bobintetley
12    PlainDocument/View support and implementation. Build script supports java/javax
13    packages - fix to build script to use nested args in bootclasspath (single path broke on my Ant 1.6.1/Linux)
14
15    Revision 1.1 2004/04/28 11:02:05 bobintetley
16    PlainDocument implementation
17
18 */

19
20 package swingwtx.swing.text;
21
22 /**
23  * Plain Document implementation (default for JTextField, JPasswordField and
24  * JTextArea)
25  *
26  * @author Robin Rawson-Tetley
27  */

28 public class PlainDocument extends AbstractDocument {
29     
30     public PlainDocument() { content = new GapContent(); }
31     public PlainDocument(AbstractDocument.Content c) { content = c; }
32
33     public Element getDefaultRootElement() {
34         return null;
35     }
36     
37     public Element getParagraphElement(int pos) {
38         return null;
39     }
40     
41 }
42
Popular Tags