I am using checkboxes, but when a checkbox is marked, the isDefined
method in the contribution is not called again.
Is it somehow possible to tell Polyscope that the program node is now undefined?
Or can I somehow trigger Polyscope to call isDefined()
again?
I think you can just do this:
@Override
public boolean isDefined() {
return model.get(DEFINED, false);
}
Then just write to that datamodel key when setting your checkbox. set it false when unchecked, and set it true when checked.
My problem is that my isDefined
function is not called when I mark the checkbox.
If my isDefined
function is called, it would work.