Package org.openstreetmap.josm.gui.io
Class UploadTextComponentValidator.UploadAreaValidator
java.lang.Object
org.openstreetmap.josm.gui.util.ChangeNotifier
org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
org.openstreetmap.josm.gui.io.UploadTextComponentValidator
org.openstreetmap.josm.gui.io.UploadTextComponentValidator.UploadAreaValidator
- All Implemented Interfaces:
ActionListener,FocusListener,PropertyChangeListener,EventListener,DocumentListener
- Enclosing class:
- UploadTextComponentValidator
Validator for the changeset area
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.io.UploadTextComponentValidator
UploadTextComponentValidator.UploadAreaValidator, UploadTextComponentValidator.UploadCommentValidator, UploadTextComponentValidator.UploadSourceValidator -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.io.UploadTextComponentValidator
uploadRejectedFields 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 TypeMethodDescription(package private) voidcomputeArea(Collection<? extends IPrimitive> primitives) voidvalidate()Implement in subclasses to validate the content of the text component.Methods inherited from class org.openstreetmap.josm.gui.io.UploadTextComponentValidator
feedbackValid, feedbackWarning, isUploadRejected, isValidMethods inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdateMethods inherited from class org.openstreetmap.josm.gui.util.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
-
Field Details
-
area
-
-
Constructor Details
-
UploadAreaValidator
UploadAreaValidator(JTextComponent tc, JLabel feedback)
-
-
Method Details
-
computeArea
-
validate
Description copied from class:AbstractTextComponentValidatorImplement in subclasses to validate the content of the text component.- Specified by:
validatein classAbstractTextComponentValidator
-