|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.swing.TextComponentChecker
It is used to manage checking in a text component.
Constructor Summary | |
TextComponentChecker()
Creates new TextComponentChecker |
Method Summary | |
void |
dispatchEvent(java.awt.event.KeyEvent evt)
Dispatches a KeyEvent to this object.
|
java.lang.String |
getText()
Returns the text contained in the managed component. |
abstract boolean |
isValid()
Checks if the component contains a correct value. |
void |
setRefTextComponent(javax.swing.text.JTextComponent refComp)
Sets the referenced text component. |
void |
syncCheckerText()
It is useful if text in the component changes without control. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextComponentChecker()
Method Detail |
public void dispatchEvent(java.awt.event.KeyEvent evt)
KeyEvent
to this object.
Call it IN EACH KEY EVENT (KeyPressed, KeyReleased, KeyTyped
.
evt
- The generated event.public java.lang.String getText()
public abstract boolean isValid()
true
: It is correct.
false
: It is not correct.public void setRefTextComponent(javax.swing.text.JTextComponent refComp)
refComp
- The component to be checked.public void syncCheckerText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |