Class BoundingBoxSelectionPanel.LongitudeValidator
- java.lang.Object
-
- org.openstreetmap.josm.gui.util.ChangeNotifier
-
- org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
-
- org.openstreetmap.josm.gui.widgets.BoundingBoxSelectionPanel.LongitudeValidator
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.FocusListener,java.beans.PropertyChangeListener,java.util.EventListener,javax.swing.event.DocumentListener
- Enclosing class:
- BoundingBoxSelectionPanel
private static class BoundingBoxSelectionPanel.LongitudeValidator extends AbstractTextComponentValidator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
AbstractTextComponentValidator.Status
-
-
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, WARNING_FOREGROUND
-
-
Constructor Summary
Constructors Constructor Description LongitudeValidator(javax.swing.text.JTextComponent tc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddecorate(javax.swing.text.JTextComponent tc)booleanisValid()Replies true if the current content of the decorated text component is valid; false otherwisevoidvalidate()Implement in subclasses to validate the content of the text component.-
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
-
LongitudeValidator
LongitudeValidator(javax.swing.text.JTextComponent tc)
-
-
Method Detail
-
decorate
public static void decorate(javax.swing.text.JTextComponent tc)
-
validate
public void validate()
Description copied from class:AbstractTextComponentValidatorImplement in subclasses to validate the content of the text component.- Specified by:
validatein classAbstractTextComponentValidator
-
isValid
public boolean 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
-
-