Package org.openstreetmap.josm.gui.io
Class UploadTextComponentValidator
java.lang.Object
org.openstreetmap.josm.gui.util.ChangeNotifier
org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
org.openstreetmap.josm.gui.io.UploadTextComponentValidator
- All Implemented Interfaces:
ActionListener,FocusListener,PropertyChangeListener,EventListener,DocumentListener
- Direct Known Subclasses:
UploadTextComponentValidator.UploadAreaValidator,UploadTextComponentValidator.UploadCommentValidator,UploadTextComponentValidator.UploadSourceValidator
Input validators for
UploadDialog-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classValidator for the changeset area(package private) static classValidator for the changesetcommenttag(package private) static classValidator for the changesetsourcetag -
Field Summary
FieldsFields 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, WARNING_FOREGROUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfeedbackValid(String msg) protected voidfeedbackWarning(String msg) final booleanDetermines if the input validator considers the violation bad enough to reject upload.booleanisValid()Replies true if the current content of the decorated text component is valid; false otherwiseMethods inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate, validateMethods inherited from class org.openstreetmap.josm.gui.util.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
-
Field Details
-
feedback
-
uploadRejected
-
-
Constructor Details
-
UploadTextComponentValidator
UploadTextComponentValidator(JTextComponent tc, JLabel feedback)
-
-
Method Details
-
feedbackValid
- Overrides:
feedbackValidin classAbstractTextComponentValidator
-
feedbackWarning
- Overrides:
feedbackWarningin classAbstractTextComponentValidator
-
isValid
Description copied from class:AbstractTextComponentValidatorReplies true if the current content of the decorated text component is valid; false otherwise- Specified by:
isValidin classAbstractTextComponentValidator- Returns:
- true if the current content of the decorated text component is valid
-
isUploadRejected
Determines if the input validator considers the violation bad enough to reject upload.- Returns:
trueif the input validator considers the violation bad enough to reject upload- Since:
- 17238
-