KickJava   Java API By Example, From Geeks To Geeks.

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


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: Position.java,v $
11    Revision 1.1 2004/01/26 08:11:14 bobintetley
12    Many bugfixes and addition of SwingSet
13
14
15 */

16 package swingwtx.swing.text;
17
18 public interface Position {
19
20     public int getOffset();
21
22     public static final class Bias {
23     public static final Bias Forward = new Bias("Forward");
24     public static final Bias Backward = new Bias("Backward");
25         public String JavaDoc toString() {
26         return name;
27     }
28         private Bias(String JavaDoc name) {
29         this.name = name;
30     }
31     private String JavaDoc name;
32     }
33 }
34
Popular Tags