org.openstreetmap.josm.gui.dialogs.changeset.query
Class AdvancedChangesetQueryPanel.TimeValidator
java.lang.Object
org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
org.openstreetmap.josm.gui.dialogs.changeset.query.AdvancedChangesetQueryPanel.TimeValidator
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.FocusListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.DocumentListener
- Enclosing class:
- AdvancedChangesetQueryPanel
private static class AdvancedChangesetQueryPanel.TimeValidator
- extends AbstractTextComponentValidator
Validates time values entered as text in in a 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.
Methods inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator |
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, feedbackValid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvancedChangesetQueryPanel.TimeValidator
public AdvancedChangesetQueryPanel.TimeValidator(javax.swing.text.JTextComponent tc)
decorate
public static AdvancedChangesetQueryPanel.TimeValidator decorate(javax.swing.text.JTextComponent tc)
isValid
public boolean isValid()
- Description copied from class:
AbstractTextComponentValidator
- Replies true if the current content of the decorated text component is valid;
false otherwise
- Specified by:
isValid
in class AbstractTextComponentValidator
- Returns:
- true if the current content of the decorated text component is valid
getStandardTooltipTextAsHtml
public java.lang.String getStandardTooltipTextAsHtml()
getStandardTooltipText
public java.lang.String getStandardTooltipText()
validate
public void validate()
- Description copied from class:
AbstractTextComponentValidator
- Implement in subclasses to validate the content of the text component.
- Specified by:
validate
in class AbstractTextComponentValidator
getDate
public java.util.Date getDate()
JOSM