|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
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 insertionMethod Detail |
public String getOriginalText()
public int getStartPosition()
public void setStartPosition(int v)
public int getEndPosition()
public void setEndPosition(int v)
public String getText()
public void setText(String v)
public boolean isDeletion()
public boolean getAllowChange()
public void setAllowChange(boolean v)
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |