public static class OsmIdTextField.OsmIdValidator extends AbstractTextComponentValidator
JTextComponent.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<PrimitiveId> |
ids |
private OsmPrimitiveType |
type |
| Constructor and Description |
|---|
OsmIdValidator(javax.swing.text.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, removeUpdateprivate final java.util.List<PrimitiveId> ids
private OsmPrimitiveType type
public OsmIdValidator(javax.swing.text.JTextComponent tc)
OsmIdTextField.OsmIdValidatortc - The text component to validatepublic boolean isValid()
AbstractTextComponentValidatorisValid in class AbstractTextComponentValidatorpublic void validate()
AbstractTextComponentValidatorvalidate in class AbstractTextComponentValidatorpublic boolean readOsmIds()