JClass DesktopViews 6.3.0 API
Documentation

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.


Field Summary
protected  int currentPos
           
protected  boolean doit
           
protected  int newPos
           
 
Constructor Summary
TextCursorEvent(int current_pos, int new_pos)
           
 
Method Summary
 boolean getAllowMovement()
          Determines whether the cursor movement should be allowed.
 int getCurrentPosition()
          Gets the current cursor position.
 int getNewPosition()
          Gets the new cursor position.
 void setAllowMovement(boolean doit)
          Determines whether the cursor movement should be allowed (default: true).
 void setNewPosition(int new_position)
          Sets the new cursor position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentPos

protected int currentPos

newPos

protected int newPos

doit

protected boolean doit
Constructor Detail

TextCursorEvent

public TextCursorEvent(int current_pos,
                       int new_pos)
Method Detail

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).


Copyright © 2004 Quest Software Inc..
All rights reserved.