private static class AdvancedChangesetQueryPanel.TimeValidator extends AbstractTextComponentValidator
JTextComponent
. Validates the input
on the fly and gives feedback about whether the time value is valid or not.
Time values can be entered in one of four standard formats defined for the current locale.Constructor and Description |
---|
AdvancedChangesetQueryPanel.TimeValidator(JTextComponent tc) |
Modifier and Type | Method and Description |
---|---|
static AdvancedChangesetQueryPanel.TimeValidator |
decorate(JTextComponent tc) |
Date |
getDate() |
String |
getStandardTooltipText() |
String |
getStandardTooltipTextAsHtml() |
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 AdvancedChangesetQueryPanel.TimeValidator(JTextComponent tc)
public static AdvancedChangesetQueryPanel.TimeValidator decorate(JTextComponent tc)
public boolean isValid()
AbstractTextComponentValidator
isValid
in class AbstractTextComponentValidator
public String getStandardTooltipTextAsHtml()
public String getStandardTooltipText()
public void validate()
AbstractTextComponentValidator
validate
in class AbstractTextComponentValidator