From 7aa2893c4b145631a3e2aabe6cb924881820ee0e Mon Sep 17 00:00:00 2001 From: Adrian Stoica Date: Mon, 14 Oct 2019 21:53:02 +0200 Subject: [PATCH] added the first draft for the metadata editor UI --- .../simpleex/ui/MetaDataEditorController.java | 70 +++++++++++++++++++ .../resources/simpleex/ui/MetaDataEditor.fxml | 55 +++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 simpleexample2/fxui/src/main/java/simpleex/ui/MetaDataEditorController.java create mode 100644 simpleexample2/fxui/src/main/resources/simpleex/ui/MetaDataEditor.fxml diff --git a/simpleexample2/fxui/src/main/java/simpleex/ui/MetaDataEditorController.java b/simpleexample2/fxui/src/main/java/simpleex/ui/MetaDataEditorController.java new file mode 100644 index 0000000..67f7f6e --- /dev/null +++ b/simpleexample2/fxui/src/main/java/simpleex/ui/MetaDataEditorController.java @@ -0,0 +1,70 @@ +package simpleex.ui; + +import javafx.event.ActionEvent; +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.TableColumn; +import javafx.scene.control.TableView; +import javafx.scene.control.TextArea; +import javafx.scene.control.TextField; +import javafx.scene.layout.VBox; +import simpleex.core.LatLong; +import simpleex.ui.tags.TagsBar; + +public class MetaDataEditorController { + + private LatLong latlong; + + @FXML + private Button saveButton; + + @FXML + private Button cancelButton; + + @FXML + private VBox centerVBox; + + @FXML + private TextField nameInput; + + @FXML + private TextArea descriptionInput; + + @FXML + private TableView propertiesTableView; + + @FXML + private TableColumn propertyNamesColumn; + + @FXML + private TableColumn propertyValuesColumn; + + @FXML + private TagsBar tagsBar; + + @FXML + void onCancel(ActionEvent event) { + + } + + @FXML + void onLocationName(ActionEvent event) { + + } + + @FXML + void onSave(ActionEvent event) { + + } + + void setLatLong(LatLong latLong) { + this.latlong = latLong; + updateUi(); + } + + private void updateUi() { + // TODO Auto-generated method stub + + } + +} diff --git a/simpleexample2/fxui/src/main/resources/simpleex/ui/MetaDataEditor.fxml b/simpleexample2/fxui/src/main/resources/simpleex/ui/MetaDataEditor.fxml new file mode 100644 index 0000000..88be1e2 --- /dev/null +++ b/simpleexample2/fxui/src/main/resources/simpleex/ui/MetaDataEditor.fxml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + +