Alter 2 files

Update `Controller.java`
Add `StorageController.java`
This commit is contained in:
akp 2023-02-01 09:20:51 +00:00
parent af94ecb129
commit 44735c0446
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 31 additions and 3 deletions

View file

@ -39,12 +39,15 @@ public class Controller {
}
private void checkBoxChecked(MouseEvent event) {
System.out.printf("checkbox checked %s\n", event.toString());
CheckBox source = (CheckBox) event.getSource();
if (!source.isSelected()) {
return;
}
HBox hbox = (HBox) source.getParent();
Label label = (Label) hbox.getChildren().get(1);
label.setStyle("-fx-strikethrough: true");
System.out.println(label.getStyle());
System.out.println(label.getText());
}
@FXML

View file

@ -0,0 +1,25 @@
package net.akpain.todo;
import java.util.LinkedList;
public class StorageController {
private LinkedList<TodoObject> todos;
public StorageController() {
todos = new LinkedList<>();
}
public void load() {
}
public void load(String filename) {
}
private void save() {
}
}