public static class OsmIdTextField.OsmIdValidator extends AbstractTextComponentValidator
JTextComponent
.Modifier and Type | Field and Description |
---|---|
private List<PrimitiveId> |
ids |
private OsmPrimitiveType |
type |
Constructor and Description |
---|
OsmIdTextField.OsmIdValidator(JTextComponent tc)
Constructs a new
OsmIdTextField.OsmIdValidator |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid()
Replies true if the current content of the decorated text component is valid;
false otherwise
|
boolean |
readOsmIds()
Reads the OSM primitive id(s)
|
void |
validate()
Implement in subclasses to validate the content of the text component.
|
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, feedbackValid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdate
private final List<PrimitiveId> ids
private OsmPrimitiveType type
public OsmIdTextField.OsmIdValidator(JTextComponent tc)
OsmIdTextField.OsmIdValidator
tc
- The text component to validatepublic boolean isValid()
AbstractTextComponentValidator
isValid
in class AbstractTextComponentValidator
public void validate()
AbstractTextComponentValidator
validate
in class AbstractTextComponentValidator
public boolean readOsmIds()