Skip to content
Snippets Groups Projects
Commit 94f83aa2 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

is/setEnabled methods should remain public

parent 98a331f0
Branches
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ import javax.swing.text.PlainDocument;
*/
public abstract class AFilteredDocument extends PlainDocument {
private static final long serialVersionUID = 3790757385170435708L;
private static final long serialVersionUID = -1301444256024766504L;
// This allows to temporarily deactivate the validation, useful for setting text that doesn't match
private boolean enabled = true;
......@@ -49,7 +49,7 @@ public abstract class AFilteredDocument extends PlainDocument {
*
* @return true if the input validation is turned on.
*/
protected boolean isEnabled() {
public boolean isEnabled() {
return enabled;
}
......@@ -58,7 +58,7 @@ public abstract class AFilteredDocument extends PlainDocument {
*
* @param enabled true to enable validation, false otherwise.
*/
protected void setEnabled(boolean enabled) {
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment