org.openstreetmap.josm.gui.bbox
Class TileSelectionBBoxChooser.TileCoordinateValidator

java.lang.Object
  extended by org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator
      extended by org.openstreetmap.josm.gui.bbox.TileSelectionBBoxChooser.TileCoordinateValidator
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.DocumentListener
Enclosing class:
TileSelectionBBoxChooser

private static class TileSelectionBBoxChooser.TileCoordinateValidator
extends AbstractTextComponentValidator

Validates the x- or y-coordinate of a tile at a given zoom level.


Field Summary
private  int tileIndex
           
private  int zoomLevel
           
 
Constructor Summary
TileSelectionBBoxChooser.TileCoordinateValidator(javax.swing.text.JTextComponent tc)
           
 
Method Summary
 int getTileIndex()
           
 boolean isValid()
          Replies true if the current content of the decorated text component is valid; false otherwise
 void setZoomLevel(int zoomLevel)
           
 void validate()
          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, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zoomLevel

private int zoomLevel

tileIndex

private int tileIndex
Constructor Detail

TileSelectionBBoxChooser.TileCoordinateValidator

public TileSelectionBBoxChooser.TileCoordinateValidator(javax.swing.text.JTextComponent tc)
                                                 throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

setZoomLevel

public void setZoomLevel(int zoomLevel)

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

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

getTileIndex

public int getTileIndex()


JOSM