KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. 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: DefaultCaret.java,v $
11    Revision 1.1 2004/03/18 16:21:37 bobintetley
12    JTextComponent/Caret implementation and fix to JFileChooser for bug in GNU classpath
13
14
15 */

16
17 package swingwtx.swing.text;
18
19 /**
20  * Default implementation of the Caret interface for
21  * descendants of JTextComponent
22  *
23  * @author Robin Rawson-Tetley
24  */

25 public class DefaultCaret implements Caret {
26
27     JTextComponent text = null;
28
29     public DefaultCaret() {}
30     public DefaultCaret(JTextComponent text) { this.text = text; }
31
32     public void addChangeListener(swingwtx.swing.event.ChangeListener l) {}
33     public void deinstall(swingwtx.swing.text.JTextComponent c) {}
34     public int getBlinkRate() { return 0; }
35     public int getDot() { return 0; }
36     public swingwt.awt.Point getMagicCaretPosition() { return new swingwt.awt.Point(0, 0); }
37     public int getMark() { return 0; }
38     public void install(swingwtx.swing.text.JTextComponent c) {}
39     public boolean isSelectionVisible() { return true; }
40     public boolean isVisible() { return true; }
41     public void moveDot(int dot) { }
42     public void paint(swingwt.awt.Graphics g) { }
43     public void removeChangeListener(swingwtx.swing.event.ChangeListener l) {}
44     public void setBlinkRate(int rate) {}
45     public void setDot(int dot) { }
46     public void setMagicCaretPosition(swingwt.awt.Point p) { }
47     public void setSelectionVisible(boolean v) { }
48     public void setVisible(boolean v) { }
49
50 }
Popular Tags