|
|||||||||
| Home >> All >> javatools >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javatools.swing
Class TextComponentChecker

java.lang.Objectjavatools.swing.TextComponentChecker
- Direct Known Subclasses:
- NoSpacesTCChecker, NotEmptyTCChecker, NumericTCChecker, PositiveTCChecker
- public abstract class TextComponentChecker
- extends java.lang.Object
It is used to manage checking in a text component.
- Version:
- 0.0.1
| Field Summary | |
private javax.swing.text.JTextComponent |
refText
|
private javax.swing.text.JTextComponent |
shadowText
|
| 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 |
| Field Detail |
refText
private javax.swing.text.JTextComponent refText
shadowText
private javax.swing.text.JTextComponent shadowText
| Constructor Detail |
TextComponentChecker
public TextComponentChecker()
- Creates new TextComponentChecker
| Method Detail |
dispatchEvent
public void dispatchEvent(java.awt.event.KeyEvent evt)
- Dispatches a
KeyEventto this object. Call it IN EACH KEY EVENT (KeyPressed, KeyReleased, KeyTyped.
getText
public java.lang.String getText()
- Returns the text contained in the managed component.
isValid
public abstract boolean isValid()
- Checks if the component contains a correct value.
setRefTextComponent
public void setRefTextComponent(javax.swing.text.JTextComponent refComp)
- Sets the referenced text component.
syncCheckerText
public void syncCheckerText()
- It is useful if text in the component changes without control.
|
|||||||||
| Home >> All >> javatools >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javatools.swing.TextComponentChecker