Skip to content

Commit

Permalink
Updated edit objectives feaure to include description text.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshackleton committed Mar 27, 2024
1 parent 86d163a commit 5bb3af8
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,8 @@ public class Arp4754WireframeObjectivesViewHandler {

@FXML
private void initialize() {}

@FXML
private void objectiveMenuAction(ActionEvent event) throws Exception {
String txt = ((MenuItem) event.getSource()).getText();
menuObjective.setText(txt);
txtObjectiveQuery.setText(txt + "-query");
hasResult = true;


private boolean setObjectiveDescription(String txt) {
if (txt.compareTo("Objective-1-1") == 0) {
txtObjectiveDescription.setText(
"System development and integral processes activities are defined.");
Expand Down Expand Up @@ -146,8 +140,18 @@ private void objectiveMenuAction(ActionEvent event) throws Exception {
txtObjectiveDescription.setText("Compliance substantiation is provided.");
} else {
txtObjectiveDescription.setText("<Description>");
hasResult = false;
return false;
}

return true;
}

@FXML
private void objectiveMenuAction(ActionEvent event) throws Exception {
String txt = ((MenuItem) event.getSource()).getText();
menuObjective.setText(txt);
txtObjectiveQuery.setText(txt + "-query");
hasResult = setObjectiveDescription(txt);
}

@FXML
Expand All @@ -164,7 +168,7 @@ private void btnObjectiveDoneAction(ActionEvent event) throws Exception {
public void setText(String key, String value) {
txtObjectiveQuery.setText(key);
menuObjective.setText(value);
hasResult = true;
hasResult = setObjectiveDescription(value);
}

public String getText() {
Expand Down

0 comments on commit 5bb3af8

Please sign in to comment.