Skip to content

Commit

Permalink
Version pour release officielle
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgbn committed May 14, 2024
1 parent 05a71df commit d1394b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public class InterviewSelectorController implements Initializable {

@FXML private ListView<Interview> interviewList;
@FXML private Button addInterviewButton;
//@FXML private Button comparisonButton;
@FXML private Button comparisonButton;

@FXML private Button normalisationButton;
//@FXML private Button normalisationButton;

private ObservableList<Interview> interviews;
private ListChangeListener<Interview> listChangeListener;
Expand Down Expand Up @@ -56,23 +56,23 @@ public static Node createInterviewSelector(InterviewSelectorController controlle
@Override
public void initialize(URL location, ResourceBundle resources) {
addInterviewButton.setOnAction(event -> { commandFactory.createNewInterview().execute(); });
/*comparisonButton.setOnAction(event -> {
comparisonButton.setOnAction(event -> {
try {
commandFactory.createComparison().selectInterviews();
} catch (IOException e) {
throw new RuntimeException(e);
}
});*/
});
interviewList.setCellFactory(listView -> new InterviewSelectorCell(commandFactory));
bind(interviews);
for(Interview i: interviews){
this.interviewList.getItems().add(i);
}
interviewList.getSelectionModel().select(interviewList.getItems().indexOf(selectedInterview.getValue()));

normalisationButton.setOnAction(event -> {
/*normalisationButton.setOnAction(event -> {
commandFactory.createNormalisation().selectCategories();
});
});*/
}

private void bind(ObservableList<Interview> interviews) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ButtonBar prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="addInterviewButton" mnemonicParsing="false" text="%add_interview" styleClass="button-gray" />
<!---<Button fx:id="comparisonButton" mnemonicParsing="false" text="%comparison_table" styleClass="button-gray" /> -->
<Button fx:id="normalisationButton" mnemonicParsing="false" text="%normalisation_table" styleClass="button-gray" />
<Button fx:id="comparisonButton" mnemonicParsing="false" text="%comparison_table" styleClass="button-gray" />
<!---<Button fx:id="normalisationButton" mnemonicParsing="false" text="%normalisation_table" styleClass="button-gray" /> -->
</buttons>
<padding>
<Insets left="15.0" right="15.0" />
Expand Down

0 comments on commit d1394b1

Please sign in to comment.