I have the following simple class which extends Checkbox and want to make it so that the Checkboxes default to unchecked upon creation. I tried calling setValue(false) in this class however the checkboxes are still defaulting to checked. Any help is appreciated
public final class ServerTaskCheckBox extends CheckBox {
private final ServerTask serverTask;
public ServerTaskCheckBox(ServerTask serverTask) {
super(serverTask.getCheckBoxLabel());
this.serverTask = serverTask;
setValue(false);
}
public ServerTask getServerTask() {
return serverTask;
}
}
Aucun commentaire:
Enregistrer un commentaire