Skip to content

Commit

Permalink
Made error type property read-only.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Dec 1, 2023
1 parent 151cf4f commit ffc9581
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void setConverter(StringConverter<ErrorType> converter) {

// ERROR TYPE

private final ObjectProperty<ErrorType> errorType = new SimpleObjectProperty<>(this, "errorType");
private final ReadOnlyObjectWrapper<ErrorType> errorType = new ReadOnlyObjectWrapper<>(this, "errorType");

public final ErrorType getErrorType() {
return errorType.get();
Expand All @@ -180,12 +180,8 @@ public final ErrorType getErrorType() {
*
* @return the error type property
*/
public final ObjectProperty<ErrorType> errorTypeProperty() {
return errorType;
}

public final void setErrorType(ErrorType errorType) {
this.errorType.set(errorType);
public final ReadOnlyObjectProperty<ErrorType> errorTypeProperty() {
return errorType.getReadOnlyProperty();
}

/**
Expand Down

0 comments on commit ffc9581

Please sign in to comment.