com.klg.jclass.field.validate
Class TextCursorEvent
java.lang.Object
|
+--com.klg.jclass.field.validate.TextCursorEvent
- public class TextCursorEvent
- extends Object
TextCursorEvent is posted when the cursor moves in the text component.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
currentPos
protected int currentPos
newPos
protected int newPos
doit
protected boolean doit
TextCursorEvent
public TextCursorEvent(int current_pos,
int new_pos)
getCurrentPosition
public int getCurrentPosition()
- Gets the current cursor position.
getNewPosition
public int getNewPosition()
- Gets the new cursor position.
setNewPosition
public void setNewPosition(int new_position)
- Sets the new cursor position.
getAllowMovement
public boolean getAllowMovement()
- Determines whether the cursor movement should be allowed.
setAllowMovement
public void setAllowMovement(boolean doit)
- Determines whether the cursor movement should be allowed (default: true).