1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-07-01 07:53:02 +02:00

Fixed Swap button bug

This commit is contained in:
Carlos Galindo 2016-06-12 00:37:34 +02:00
parent b68d502a3f
commit ebe97fa49a
Signed by: kauron
GPG key ID: 83E68706DEE119A3

View file

@ -36,11 +36,11 @@ public class TableController implements Initializable {
public void initialize(URL url, ResourceBundle resourceBundle) {
answerCol.setCellValueFactory(e -> e.getValue().answerProperty());
questionCol.setCellValueFactory(e -> e.getValue().questionProperty());
editButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
swapButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
deleteButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
duplicateButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
testSelectionButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
// editButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
// swapButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
// deleteButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
// duplicateButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
// testSelectionButton.disableProperty().bind(table.getSelectionModel().selectedIndexProperty().lessThan(0));
}
void setData(List<TestItem> list, Controller controller) {