|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.field.validate.TextEvent
TextEvent is posted when text has been changed in a field.
Field Summary | |
protected boolean |
allowChange
|
protected int |
end
|
protected boolean |
isDeletion
|
protected String |
newText
|
protected String |
originalText
|
protected int |
start
|
Constructor Summary | |
TextEvent(String original_text,
int start,
int end,
String new_text,
boolean is_deletion)
Constructs a TextEvent. |
Method Summary | |
boolean |
getAllowChange()
Determines whether the value change be allowed. |
int |
getEndPosition()
Gets the ending position of the text to modify. |
String |
getOriginalText()
Returns the orignal text |
int |
getStartPosition()
Gets the starting position of the text to modify. |
String |
getText()
Gets the string to be inserted. |
boolean |
isDeletion()
Returns true if text is being deleted. |
void |
setAllowChange(boolean v)
Determines whether the value change be allowed (default: true). |
void |
setEndPosition(int v)
Sets the ending position of the text to modify. |
void |
setStartPosition(int v)
Sets the starting position of the text to modify. |
void |
setText(String v)
Sets the string to be inserted. |
String |
toString()
Override toString() to print more meaningful results |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String originalText
protected int start
protected int end
protected String newText
protected boolean isDeletion
protected boolean allowChange
Constructor Detail |
public TextEvent(String original_text, int start, int end, String new_text, boolean is_deletion)
original_text
- text before insertionstart
- starting position to insert textend
- ending position of textnew_text
- new text after insertionis_deletion
- are we deleting?Method Detail |
public String getOriginalText()
public int getStartPosition()
public void setStartPosition(int v)
v
- The new starting positionpublic int getEndPosition()
public void setEndPosition(int v)
v
- The new end positionpublic String getText()
public void setText(String v)
v
- The new string to be insertedpublic boolean isDeletion()
public boolean getAllowChange()
public void setAllowChange(boolean v)
v
- Determines whether changes are allowed.public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |