Skip to content

Commit

Permalink
Added support for deregistering validator for control
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoy committed Jun 10, 2022
1 parent 6fa8df9 commit 3c900aa
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -327,6 +327,10 @@ public void onChanged(
public <T> boolean registerValidator( final Control c, final Validator<T> validator ) {
return registerValidator(c, true, validator);
}

public boolean deregisterValidator(Control c) {
return controls.remove(c) && validationResults.remove(c);
}

/**
* Returns currently registered controls
Expand Down

0 comments on commit 3c900aa

Please sign in to comment.