Class UserNameValidator
- java.lang.Object
-
- org.openstreetmap.josm.gui.util.ChangeNotifier
-
- org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
-
- org.openstreetmap.josm.gui.widgets.DefaultTextComponentValidator
-
- org.openstreetmap.josm.gui.preferences.server.UserNameValidator
-
- All Implemented Interfaces:
ActionListener
,FocusListener
,PropertyChangeListener
,EventListener
,DocumentListener
public class UserNameValidator extends DefaultTextComponentValidator
Validator for OSM username.
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
ERROR_BACKGROUND, ERROR_BORDER, ERROR_COLOR, VALID_BORDER, VALID_COLOR, WARNING_BACKGROUND, WARNING_BORDER, WARNING_COLOR
-
-
Constructor Summary
Constructors Constructor Description UserNameValidator(JTextComponent tc)
Constructs a newUserNameValidator
.
-
Method Summary
-
Methods inherited from class org.openstreetmap.josm.gui.widgets.DefaultTextComponentValidator
isValid, validate
-
Methods inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, feedbackValid, feedbackWarning, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate
-
Methods inherited from class org.openstreetmap.josm.gui.util.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
-
-
-
-
Constructor Detail
-
UserNameValidator
public UserNameValidator(JTextComponent tc)
Constructs a newUserNameValidator
.- Parameters:
tc
- the text component used to enter username
-
-