Commit 4a0c88b5 authored by Riegel's avatar Riegel
Browse files

Feat: Add button setup

parent d99373bf
Showing with 7 additions and 0 deletions
+7 -0
......@@ -96,8 +96,15 @@ public class ZipEntryPicker {
entryList.getSelectionModel().selectedItemProperty().addListener((obs, oldI, newI) -> {
if (newI != null) {
showMetadata(newI.getEntry());
// Disable loadBtn when entry is erroneous
loadBtn.setDisable(newI.getEntry().getErrorType() != null);
}
});
cancelBtn.setOnAction(e -> stage.close());
loadBtn.setOnAction(e -> {
CityGmlZipEntry entry = entryList.getSelectionModel().getSelectedItem().getEntry();
});
}
public void initialize() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment