1 16 17 package swingwtx.swing.text; 18 19 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 |