diff --git a/phonenumberfx/src/main/java/com/dlsc/phonenumberfx/PhoneNumberLabel.java b/phonenumberfx/src/main/java/com/dlsc/phonenumberfx/PhoneNumberLabel.java index 334d70f..ade915f 100644 --- a/phonenumberfx/src/main/java/com/dlsc/phonenumberfx/PhoneNumberLabel.java +++ b/phonenumberfx/src/main/java/com/dlsc/phonenumberfx/PhoneNumberLabel.java @@ -167,7 +167,7 @@ public void setConverter(StringConverter converter) { // ERROR TYPE - private final ObjectProperty errorType = new SimpleObjectProperty<>(this, "errorType"); + private final ReadOnlyObjectWrapper errorType = new ReadOnlyObjectWrapper<>(this, "errorType"); public final ErrorType getErrorType() { return errorType.get(); @@ -180,12 +180,8 @@ public final ErrorType getErrorType() { * * @return the error type property */ - public final ObjectProperty errorTypeProperty() { - return errorType; - } - - public final void setErrorType(ErrorType errorType) { - this.errorType.set(errorType); + public final ReadOnlyObjectProperty errorTypeProperty() { + return errorType.getReadOnlyProperty(); } /**