public class UidInputFieldValidator extends AbstractTextComponentValidator
JTextComponent
.Constructor and Description |
---|
UidInputFieldValidator(javax.swing.text.JTextComponent tc)
Constructs a new
TimeValidator for the given text component. |
Modifier and Type | Method and Description |
---|---|
static UidInputFieldValidator |
decorate(javax.swing.text.JTextComponent tc)
Decorates the given text component.
|
int |
getUid()
Returns the user identifier.
|
boolean |
isValid()
Replies true if the current content of the decorated text component is valid;
false otherwise
|
void |
validate()
Implement in subclasses to validate the content of the text component.
|
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, feedbackValid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate
public UidInputFieldValidator(javax.swing.text.JTextComponent tc)
TimeValidator
for the given text component.tc
- text componentpublic static UidInputFieldValidator decorate(javax.swing.text.JTextComponent tc)
tc
- text component to decoratetc
public boolean isValid()
AbstractTextComponentValidator
isValid
in class AbstractTextComponentValidator
public void validate()
AbstractTextComponentValidator
validate
in class AbstractTextComponentValidator
public int getUid()